Handle initial connect failure better.
This commit is contained in:
parent
fbd8d6897d
commit
7c07dba3f7
@ -69,7 +69,7 @@ void RpcConnection::Open()
|
||||
|
||||
void RpcConnection::Close()
|
||||
{
|
||||
if (onDisconnect && state == State::Connected) {
|
||||
if (onDisconnect && (state == State::Connected || state == State::SentHandshake)) {
|
||||
onDisconnect(lastErrorCode, lastErrorMessage);
|
||||
}
|
||||
connection->Close();
|
||||
|
Loading…
Reference in New Issue
Block a user