extended timeout

This commit is contained in:
Erik 2020-04-12 15:34:46 +03:00
parent 7735a9fc98
commit d79c29acfd

View File

@ -63,7 +63,7 @@ class Shard extends EventEmitter {
this.once('ready', resolve); this.once('ready', resolve);
this.once('disconnect', () => reject(new Error(`[shard${this.id}] Shard disconnected while readying.`))); this.once('disconnect', () => reject(new Error(`[shard${this.id}] Shard disconnected while readying.`)));
this.once('death', () => reject(new Error(`[shard${this.id}] Shard died while readying.`))); this.once('death', () => reject(new Error(`[shard${this.id}] Shard died while readying.`)));
setTimeout(() => reject(new Error(`[shard${this.id}] Shard timed out while readying.`)), 10000); setTimeout(() => reject(new Error(`[shard${this.id}] Shard timed out while readying.`)), 30000);
}); });
return this.process || this.worker; return this.process || this.worker;