game: add: support multiplayer

This commit is contained in:
2024-02-28 17:49:12 +01:00
parent f567943894
commit 9f30f5c3d1
5 changed files with 26 additions and 19 deletions

View File

@ -290,8 +290,11 @@ class Game
leave()
{
this._socket.close();
this._socket = undefined;
if (this._socket)
{
this._socket.close();
this._socket = undefined;
}
}
}