mirror of
https://github.com/Impostor/Impostor.git
synced 2026-11-19 13:17:05 +00:00
Add disconnect reason when reason is null
This commit is contained in:
1 parent
ec64b0148c
commit
055366fed8
1 file changed
+1
-1
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user