From 0c8e5a0249b99c14627816707f88a9123c08b545 Mon Sep 17 00:00:00 2001 From: samarmeena Date: Wed, 12 Jun 2024 20:07:36 +0530 Subject: [PATCH] refactor: exit method --- packages/lava-queue/src/queue.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/lava-queue/src/queue.ts b/packages/lava-queue/src/queue.ts index 1de7b0c13..17b9b1e39 100644 --- a/packages/lava-queue/src/queue.ts +++ b/packages/lava-queue/src/queue.ts @@ -167,6 +167,7 @@ export class Queue { async exit(): Promise { this._lastTrack = null; this.removeAllTracks(); + await this.lavaPlayer.leave(); await this.lavaPlayer.destroy(); } }