From ee6cde59c84ee8704239ff492d5448d61032daf2 Mon Sep 17 00:00:00 2001 From: Florrie Date: Sat, 24 Aug 2019 18:12:15 -0300 Subject: Fix skipIfCurrent causing a crash I.e, fix a reference to the now nonexistant playNextTrack. This fixes a crash that happens when "Play later" is selected on the currently playing track (since doing so is meant to skip to the next song in queue before moving the play-later'd track). --- backend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend.js b/backend.js index b8071d1..d88c779 100644 --- a/backend.js +++ b/backend.js @@ -319,7 +319,7 @@ class Backend extends EventEmitter { skipIfCurrent(track) { if (track === this.playingTrack) { - this.playNextTrack(track) + this.playNext(track) } } -- cgit 1.3.0-6-gf8a5