Add disconnect reason when reason is null

This commit is contained in:
AeonLucid committed 2020-10-24 22:51:22 +02:00
1 parent ec64b0148c
commit 055366fed8
1 file changed
+1 -1
+1 -1
View File
@@ -334,7 +334,7 @@ namespace Impostor.Server.Net
Message01JoinGameS2C.SerializeError(packet, false, reason, message);
await Connection.SendAsync(packet);
await Connection.DisconnectAsync(message);
await Connection.DisconnectAsync(message ?? reason.ToString());
}
}
}