mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-06 05:12:26 +08:00
Stopped retry when fatal error happened in secure socket #4553
This commit is contained in:
@@ -297,7 +297,6 @@ SecureSocket::secureConnect(int socket)
|
||||
}
|
||||
else {
|
||||
LOG((CLOG_ERR "failed to verify server certificate fingerprint"));
|
||||
sendEvent(getEvents()->forISocket().stopRetry());
|
||||
disconnect();
|
||||
}
|
||||
}
|
||||
@@ -435,6 +434,7 @@ SecureSocket::getError()
|
||||
void
|
||||
SecureSocket::disconnect()
|
||||
{
|
||||
sendEvent(getEvents()->forISocket().stopRetry());
|
||||
sendEvent(getEvents()->forISocket().disconnected());
|
||||
sendEvent(getEvents()->forIStream().inputShutdown());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user