Core/NetworkIO: Prevent queueing more async operations when socket is already closed
This commit is contained in:
1 parent
e9943914ab
commit
c741d2682a
3 files changed
+29
-8
No files matched your search
@@ -124,6 +124,9 @@ void WorldSocket::ReadDataHandler()
|
||||
|
||||
void WorldSocket::AsyncWrite(WorldPacket& packet)
|
||||
{
|
||||
if (!IsOpen())
|
||||
return;
|
||||
|
||||
if (sPacketLog->CanLogPacket())
|
||||
sPacketLog->LogPacket(packet, SERVER_TO_CLIENT, GetRemoteIpAddress(), GetRemotePort());
|
||||
|
||||
|
||||
Reference in new issue
Block a user