From 483645203800d5afe165091ba4b1641e6a980869 Mon Sep 17 00:00:00 2001 From: crs Date: Thu, 10 Jun 2004 21:25:09 +0000 Subject: [PATCH] Fixed assertion failure when client connection fails immediately. --- lib/client/CClient.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/client/CClient.cpp b/lib/client/CClient.cpp index 59bbc4fcf..15092cf62 100644 --- a/lib/client/CClient.cpp +++ b/lib/client/CClient.cpp @@ -90,8 +90,11 @@ CClient::connect() socket->connect(m_serverAddress); } catch (XBase& e) { + cleanupTimer(); + cleanupConnecting(); delete m_stream; m_stream = NULL; + LOG((CLOG_DEBUG1 "connection failed")); sendConnectionFailedEvent(e.what()); return; }