missing awaits

This commit is contained in:
Skillz4Killz
2021-04-09 15:57:46 +00:00
committed by GitHub
parent a297775144
commit af997afc14
6 changed files with 14 additions and 13 deletions
+3 -3
View File
@@ -46,14 +46,14 @@ export async function handleOnMessage(message: any, shardId: number) {
ws.shards.get(shardId)!.resuming = true;
}
resume(shardId);
await resume(shardId);
break;
case DiscordGatewayOpcodes.InvalidSession:
ws.log("INVALID_SESSION", { shardId, payload: messageData });
// When d is false we need to reidentify
if (!messageData.d) {
identify(shardId, ws.maxShards);
await identify(shardId, ws.maxShards);
break;
}
@@ -61,7 +61,7 @@ export async function handleOnMessage(message: any, shardId: number) {
ws.shards.get(shardId)!.resuming = true;
}
resume(shardId);
await resume(shardId);
break;
default:
if (messageData.t === "RESUMED") {