Fix handshake bug, close connection after handshake failed
This commit is contained in:
1 parent
2540b3a504
commit
4cdc66bdf1
1 file changed
+1
@@ -102,6 +102,7 @@ bool TCPConnection::doHandshakeServer() {
|
||||
cancelTimeout();
|
||||
log_->write("[" + to_string(uuid_) + "] [TCPConnection doHandshakeServer] " + error.what(),
|
||||
Log::Level::ERROR);
|
||||
socketShutdown();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user