Skip to content

Commit

Permalink
fix(queue): double end message due to bad checking
Browse files Browse the repository at this point in the history
  • Loading branch information
eritislami committed Jan 17, 2023
1 parent dbb979b commit 5e2d39a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion structs/MusicQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class MusicQueue {
this.songs.shift();
}

if (this.songs.length || this.resource) this.processQueue();
if (this.songs.length || this.resource.audioPlayer) this.processQueue();
} else if (oldState.status === AudioPlayerStatus.Buffering && newState.status === AudioPlayerStatus.Playing) {
this.sendPlayingMessage(newState);
}
Expand Down

0 comments on commit 5e2d39a

Please sign in to comment.