Zero out invalid socket ID on disconnect to avoid repeatedly erroring on read/write. (#848)
parent
6d8f7e5b5d
commit
ed24f932ec
|
@ -471,6 +471,7 @@ void TcpConnectionHandler::disconnectImpl_()
|
|||
#else
|
||||
close(socket_);
|
||||
#endif // defined(WIN32)
|
||||
socket_ = -1;
|
||||
|
||||
onDisconnect_();
|
||||
|
||||
|
|
Loading…
Reference in New Issue