0
0
Fork 0

Ensure player's socket object exists.

This commit is contained in:
Oliver-Akins 2021-01-07 12:36:47 -07:00
parent 4d63e78d2c
commit e5a14322c0

View file

@ -50,7 +50,7 @@ function activeGame(game: Game): boolean {
* stagnant and will be deleted by the cleanup code. * stagnant and will be deleted by the cleanup code.
*/ */
for (var player of game.players) { for (var player of game.players) {
if (player.socket.connected) { if (player.socket?.connected) {
return true; return true;
}; };
}; };