Skip to content

Commit

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

0 comments on commit ea4bb60

Please sign in to comment.