Fixed assertion failure when client connection fails immediately.

This commit is contained in:
crs 2004-06-10 21:25:09 +00:00
parent 9c9db6958f
commit 4836452038
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}