mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-22 23:50:52 +01:00
Fix connection check
This commit is contained in:
parent
9afbb9dba6
commit
29bf7fa49d
@ -154,13 +154,13 @@ export class Nitro extends Application implements INitro
|
||||
this._roomEngine.init();
|
||||
}
|
||||
|
||||
new GameMessageHandler(this._communication.connection);
|
||||
|
||||
if(!this._communication.connection)
|
||||
{
|
||||
throw new Error('No connection found');
|
||||
}
|
||||
|
||||
new GameMessageHandler(this._communication.connection);
|
||||
|
||||
this._isReady = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user