game: add: support multiplayer
This commit is contained in:
@ -290,8 +290,11 @@ class Game
|
||||
|
||||
leave()
|
||||
{
|
||||
this._socket.close();
|
||||
this._socket = undefined;
|
||||
if (this._socket)
|
||||
{
|
||||
this._socket.close();
|
||||
this._socket = undefined;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user