Fixed: Catch ESocket exceptions when disconnecting and log it

--HG--
branch : develop
feature/pipeline-tools
kervala 8 years ago
parent c05a8d3c2e
commit 4f996024d9

@ -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…
Cancel
Save