fix(music-together): fix reconnect logic

This commit is contained in:
JellyBrick
2025-04-27 06:04:52 +09:00
parent 98feeed7eb
commit 00041fd146
2 changed files with 13 additions and 13 deletions

View File

@ -550,7 +550,7 @@ export default createPlugin<
},
onStop() {
this.connection?.disconnect();
if (this.connection?.mode !== 'disconnected') this.connection?.disconnect();
this.queue?.rollbackInjection();
this.queue?.removeQueueOwner();
if (this.rollbackInjector) {