From 22e136d88817b64ec904a7e7232a2cf9e80e74bd Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 23 Mar 2008 18:12:56 +0000 Subject: improved network connection handling, keep alive and time out --- src/core/application.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/core/application.cc') 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(); -- cgit v1.2.3