mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-16 17:23:14 +00:00
fix crash when the client disconnects while sending first identify setting
This commit is contained in:
parent
98f77e157f
commit
94c0547a35
@ -173,7 +173,7 @@ void TNetwork::Identify(TConnection&& RawConnection) {
|
||||
read(RawConnection.Socket, buffer(&Code, 1), ec);
|
||||
if (ec) {
|
||||
// TODO: is this right?!
|
||||
RawConnection.Socket.shutdown(socket_base::shutdown_both);
|
||||
RawConnection.Socket.shutdown(socket_base::shutdown_both, ec);
|
||||
return;
|
||||
}
|
||||
std::shared_ptr<TClient> Client { nullptr };
|
||||
|
Loading…
x
Reference in New Issue
Block a user