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);
|
socket->connect(m_serverAddress);
|
||||||
}
|
}
|
||||||
catch (XBase& e) {
|
catch (XBase& e) {
|
||||||
|
cleanupTimer();
|
||||||
|
cleanupConnecting();
|
||||||
delete m_stream;
|
delete m_stream;
|
||||||
m_stream = NULL;
|
m_stream = NULL;
|
||||||
|
LOG((CLOG_DEBUG1 "connection failed"));
|
||||||
sendConnectionFailedEvent(e.what());
|
sendConnectionFailedEvent(e.what());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue