Skip to content

Commit

Permalink
fix: remove all listeners on disconnect()
Browse files Browse the repository at this point in the history
  • Loading branch information
Deivu committed Nov 7, 2023
1 parent 8e7d1cb commit 9e57be5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/guild/Connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export class Connection extends EventEmitter {
this.deafened = false;
this.muted = false;
this.sendVoiceUpdate();
this.removeAllListeners();
this.state = State.DISCONNECTED;
this.debug(`[Voice] -> [Node] & [Discord] : Connection Destroyed | Guild: ${this.guildId}`);
}
Expand Down

0 comments on commit 9e57be5

Please sign in to comment.