From 65344ad26cf6447083d7321a5d03f4703eead83f Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Fri, 19 Jun 2020 00:23:32 -0500 Subject: [PATCH] Check if handleDiscordEvent raises an exception --- src/client.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.nim b/src/client.nim index 87140d2..e8aa4d4 100644 --- a/src/client.nim +++ b/src/client.nim @@ -70,7 +70,7 @@ proc handleWebsocketPacket(client: DiscordClient) {.async.} = of ord(DiscordOpCode.opHeartbeatAck): client.heartbeatAcked = true of ord(DiscordOpCode.opDispatch): - discard handleDiscordEvent(client, json["d"], json["t"].getStr()) + asyncCheck(handleDiscordEvent(client, json["d"], json["t"].getStr())) else: discard