fix case where bad video breaks playlists
This commit is contained in:
parent
77800a6587
commit
d363b1560e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue