From 7dde8cffe970ef349f1fd4b6d93108243118efd8 Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Wed, 21 May 2014 20:27:49 -0700 Subject: [PATCH] Hopefully fix playlist issues --- lib/channel/playlist.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/channel/playlist.js b/lib/channel/playlist.js index 031aef23..205c609a 100644 --- a/lib/channel/playlist.js +++ b/lib/channel/playlist.js @@ -786,11 +786,11 @@ PlaylistModule.prototype._delete = function (uid) { }); } - if (self.current === item && item !== next) { + if (self.current === item && item === next) { + self.current = null; + } else { self.current = next; self.startPlayback(); - } else { - self.current = null; } return success;