fix(gateway): debug events that seems to trigger in bun

This commit is contained in:
Yuzu 2022-07-14 06:24:16 -05:00
parent cc2697a99c
commit 38cf6d79f6

View File

@ -5,7 +5,7 @@ export async function identify(shard: Shard): Promise<void> {
// A new identify has been requested even though there is already a connection open.
// Therefore we need to close the old connection and heartbeating before creating a new one.
if (shard.state === ShardState.Connected) {
console.log("CLOSING EXISTING SHARD: #" + shard.id);
// console.log("CLOSING EXISTING SHARD: #" + shard.id);
shard.close(ShardSocketCloseCodes.ReIdentifying, "Re-identifying closure of old connection.");
}