heartbeat change

This commit is contained in:
ITOH
2021-04-15 14:25:26 +02:00
parent f5d6a85882
commit 2c97964f0f
5 changed files with 48 additions and 52 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ export async function resume(shardId: number) {
oldShard.ws.close(3065, "Resuming the shard, closing old shard.");
}
// STOP OLD HEARTBEAT
clearTimeout(oldShard.heartbeat.timeoutId);
clearInterval(oldShard.heartbeat.intervalId);
ws.shards.set(shardId, {
id: shardId,
@@ -36,7 +36,7 @@ export async function resume(shardId: number) {
acknowledged: false,
keepAlive: false,
interval: 0,
timeoutId: 0,
intervalId: 0,
},
queue: oldShard.queue || [],
processingQueue: false,