Hopefully fix playlist issues

This commit is contained in:
Calvin Montgomery 2014-05-21 20:27:49 -07:00
parent ac629d4b7f
commit 7dde8cffe9
1 changed files with 3 additions and 3 deletions

View File

@ -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;