fix(WebSocketManager): await WebSocket destroy (#9519)

fix(WebSocketManager): await ws destroy

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Mogyuchi
2023-06-09 18:59:18 +09:00
committed by GitHub
parent bc2798b8ee
commit 75308f2669
6 changed files with 12 additions and 12 deletions

View File

@@ -26,7 +26,7 @@ client.on('ready', async () => {
} catch (error) {
console.error(error);
} finally {
client.destroy();
await client.destroy();
}
});