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;