mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-18 22:36:27 +01:00
Merge branch 'fix-connection-check' into 'main'
Fix connection check See merge request nitro/nitro-renderer!2
This commit is contained in:
commit
e0ea0835e7
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user