prevent double initialisation

This commit is contained in:
Erik 2023-07-15 02:13:15 +03:00
parent b289b5bf71
commit 5579d3866e
Signed by: Navy.gif
GPG Key ID: 2532FBBB61C65A68

View File

@ -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');