Merge branch 'fix-connection-check' into 'main'

Fix connection check

See merge request nitro/nitro-renderer!2
This commit is contained in:
Bill 2021-07-27 08:01:45 +00:00
commit e0ea0835e7

View File

@ -146,13 +146,13 @@ export class Nitro extends Application implements INitro
this._roomEngine.init(); this._roomEngine.init();
} }
new GameMessageHandler(this._communication.connection);
if(!this._communication.connection) if(!this._communication.connection)
{ {
throw new Error('No connection found'); throw new Error('No connection found');
} }
new GameMessageHandler(this._communication.connection);
this._isReady = true; this._isReady = true;
} }