fix: use private close clode

This commit is contained in:
Skillz4Killz
2021-04-14 18:06:11 +00:00
committed by GitHub
parent 54ce040120
commit 70a4a1f955
3 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ export async function resume(shardId: number) {
if (oldShard) {
// HOW TO CLOSE OLD SHARD SOCKET!!!
oldShard.ws.close(4009, "Resuming the shard, closing old shard.");
oldShard.ws.close(3065, "Resuming the shard, closing old shard.");
// STOP OLD HEARTBEAT
clearInterval(oldShard.heartbeat.intervalId);
}