Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-03-23 18:12:56 +0000
committerStijn Buys <ingar@osirion.org>2008-03-23 18:12:56 +0000
commit22e136d88817b64ec904a7e7232a2cf9e80e74bd (patch)
treeea369bba78930ff55325412760d14102d326f85b /src/core/application.cc
parent8485d43feca5597c4b412c6912aadcd9586e3cde (diff)
improved network connection handling, keep alive and time out
Diffstat (limited to 'src/core/application.cc')
-rw-r--r--src/core/application.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/application.cc b/src/core/application.cc
index 5394b92..efa7bca 100644
--- a/src/core/application.cc
+++ b/src/core/application.cc
@@ -229,12 +229,9 @@ void Application::connect(std::string const &host)
if (host.size()) {
application_game = new GameConnection(host);
- if (application_game->running()) {
- con_print << "Connected to '" << host << "'\n";
- } else {
+ if (!application_game->running()) {
delete application_game;
application_game = 0;
- con_warn << "Could not connect to '" << host << "'!\n";
}
} else {
application_game = new GameServer();