mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 08:03:30 +01:00
fix(WebSocketShard): bad error re-throw (#11151)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
committed by
Jiralite
parent
be38128ea1
commit
6c781ede30
@@ -173,8 +173,6 @@ export class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap> {
|
||||
|
||||
try {
|
||||
await promise;
|
||||
} catch ({ error }: any) {
|
||||
throw error;
|
||||
} finally {
|
||||
// cleanup hanging listeners
|
||||
controller.abort();
|
||||
|
||||
Reference in New Issue
Block a user