Fixed assertion failure when client connection fails immediately.
This commit is contained in:
parent
9c9db6958f
commit
4836452038
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue