Set client to null on disconnect

This commit is contained in:
Sardelka
2022-07-31 21:03:47 +08:00
parent d4e0e6f0ab
commit 10552d119f

View File

@ -45,6 +45,7 @@ namespace RageCoop.Client
if (IsOnServer)
{
Client.Disconnect("Bye!");
Client=null;
}
else if (IsConnecting) {
_publicKeyReceived.Set();