Skip to content

Commit

Permalink
refactor: exit method
Browse files Browse the repository at this point in the history
  • Loading branch information
samarmeena committed Jun 12, 2024
1 parent e4d24ff commit 0c8e5a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/lava-queue/src/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ export class Queue {
async exit(): Promise<void> {
this._lastTrack = null;
this.removeAllTracks();
await this.lavaPlayer.leave();
await this.lavaPlayer.destroy();
}
}

0 comments on commit 0c8e5a0

Please sign in to comment.