extended timeout
This commit is contained in:
parent
7735a9fc98
commit
d79c29acfd
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user