mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-27 02:50:53 +00:00
Fixed: Catch ESocket exceptions when disconnecting and log it
This commit is contained in:
parent
9666ed648b
commit
2a407b8c00
1 changed files with 10 additions and 1 deletions
|
@ -2756,7 +2756,16 @@ void CNetworkConnection::sendSystemDisconnection()
|
|||
uint32 length = message.length();
|
||||
|
||||
if (_Connection.connected())
|
||||
_Connection.send (message.buffer(), length);
|
||||
{
|
||||
try
|
||||
{
|
||||
_Connection.send(message.buffer(), length);
|
||||
}
|
||||
catch (const ESocket &e)
|
||||
{
|
||||
nlwarning("Socket exception: %s", e.what());
|
||||
}
|
||||
}
|
||||
//sendUDP (&(_Connection), message.buffer(), length);
|
||||
statsSend(length);
|
||||
|
||||
|
|
Loading…
Reference in a new issue