Fixed sending DisconnectPacket before client exit
This commit is contained in:
parent
cd1027f697
commit
3719f68359
@ -111,9 +111,9 @@ namespace TrueCraft.Client
|
||||
if (!Connected)
|
||||
return;
|
||||
|
||||
Interlocked.CompareExchange(ref connected, 0, 1);
|
||||
|
||||
QueuePacket(new DisconnectPacket("Disconnecting"));
|
||||
|
||||
Interlocked.CompareExchange(ref connected, 0, 1);
|
||||
}
|
||||
|
||||
public void SendMessage(string message)
|
||||
|
Reference in New Issue
Block a user