mirror of
https://github.com/debauchee/barrier.git
synced 2026-11-03 22:14:26 +08:00
Fixed assertion failure when client connection fails immediately.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user