mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +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 {
|
try {
|
||||||
await promise;
|
await promise;
|
||||||
} catch ({ error }: any) {
|
|
||||||
throw error;
|
|
||||||
} finally {
|
} finally {
|
||||||
// cleanup hanging listeners
|
// cleanup hanging listeners
|
||||||
controller.abort();
|
controller.abort();
|
||||||
|
|||||||
Reference in New Issue
Block a user