From 055366fed82bcf909be9db25b3d5b001f35bc2d9 Mon Sep 17 00:00:00 2001 From: AeonLucid Date: Sat, 24 Oct 2020 22:51:22 +0200 Subject: [PATCH] Add disconnect reason when reason is null --- src/Impostor.Server/Net/Client.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Impostor.Server/Net/Client.cs b/src/Impostor.Server/Net/Client.cs index cceb48c..8c0ffcd 100644 --- a/src/Impostor.Server/Net/Client.cs +++ b/src/Impostor.Server/Net/Client.cs @@ -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()); } } } \ No newline at end of file -- 2.39.5