fix case where bad video breaks playlists

This commit is contained in:
calzoneman 2013-06-20 14:59:40 -04:00
parent 77800a6587
commit d363b1560e
1 changed files with 2 additions and 0 deletions

View File

@ -1042,6 +1042,8 @@ Channel.prototype.enqueue = function(data, user, callback) {
case "sc":
InfoGetter.getMedia(data.id, data.type, function(err, media) {
if(err) {
if(callback)
callback();
user.socket.emit("queueFail");
return;
}