[Orxonox-commit 1708] r6426 - code/trunk/src/orxonox/gamestates
rgrieder at orxonox.net
rgrieder at orxonox.net
Mon Dec 28 10:08:12 CET 2009
Author: rgrieder
Date: 2009-12-28 10:08:12 +0100 (Mon, 28 Dec 2009)
New Revision: 6426
Modified:
code/trunk/src/orxonox/gamestates/GSClient.cc
Log:
Fixed bug that caused Host to fail an assert when the client failed to connect.
Modified: code/trunk/src/orxonox/gamestates/GSClient.cc
===================================================================
--- code/trunk/src/orxonox/gamestates/GSClient.cc 2009-12-27 01:30:06 UTC (rev 6425)
+++ code/trunk/src/orxonox/gamestates/GSClient.cc 2009-12-28 09:08:12 UTC (rev 6426)
@@ -58,7 +58,10 @@
this->client_ = new Client(CommandLineParser::getValue("ip").getString(), CommandLineParser::getValue("port"));
if(!client_->establishConnection())
+ {
+ delete this->client_;
ThrowException(InitialisationFailed, "Could not establish connection with server.");
+ }
client_->update(Game::getInstance().getGameClock());
}
More information about the Orxonox-commit
mailing list