prevent double initialisation
This commit is contained in:
parent
b289b5bf71
commit
5579d3866e
@ -242,7 +242,8 @@ class Server extends EventEmitter
|
|||||||
|
|
||||||
async init ()
|
async init ()
|
||||||
{
|
{
|
||||||
|
if (this.#_ready)
|
||||||
|
return void this.#logger.warn('Server already initialised!');
|
||||||
const start = Date.now();
|
const start = Date.now();
|
||||||
this.#logger.status('Starting server');
|
this.#logger.status('Starting server');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user