game: add: support multiplayer

This commit is contained in:
2024-02-28 17:49:12 +01:00
committed by AdrienLSH
parent 8a4141351b
commit f9bb10f962
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;
}
}
}