Skip to content

Commit

Permalink
chore: just emit closed event & let devs handle it
Browse files Browse the repository at this point in the history
  • Loading branch information
Deivu committed Nov 13, 2023
1 parent 94ea562 commit 8bb94d0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/guild/Player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,6 @@ export class Player extends EventEmitter {
this.emit('exception', json);
break;
case 'WebSocketClosedEvent':
const connection = this.node.manager.connections.get(this.guildId)!;
if (connection.channelId && connection.channelId !== connection.lastChannelId) break;
this.emit('closed', json);
break;
default:
Expand Down

0 comments on commit 8bb94d0

Please sign in to comment.