]> git.deb.at Git - rhonda/impostor.git/commitdiff
Add disconnect reason when reason is null
authorAeonLucid <aeonlucid@outlook.com>
Sat, 24 Oct 2020 20:51:22 +0000 (22:51 +0200)
committerAeonLucid <aeonlucid@outlook.com>
Sat, 24 Oct 2020 20:51:22 +0000 (22:51 +0200)
src/Impostor.Server/Net/Client.cs

index cceb48c807661bc3fe7ae938fed7c548f2e6e2d5..8c0ffcd2b296194386d0a15deffe68af1178c24e 100644 (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());
         }
     }
 }
\ No newline at end of file