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

View file

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