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":
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue