muthera 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muthera",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "A simple Lavalink wrapper for Discord music bot. Forked from Niizuki.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -574,6 +574,10 @@ class Player extends EventEmitter {
574
574
  }
575
575
 
576
576
  trackEnd(player, track, payload) {
577
+ // If the track ended due to an error (loadFailed), trackError() already
578
+ // handled advancing the queue / emitting queueEnd. Skip to avoid double handling.
579
+ if (payload.reason === "loadFailed") return;
580
+
577
581
  this.previous = track;
578
582
  if (this.loop === "track") {
579
583
  player.queue.unshift(this.previous);