mirror of https://github.com/calzoneman/sync.git
Fix check for channel being registered
This commit is contained in:
parent
1cc769b1ea
commit
39090fbe40
|
@ -379,7 +379,7 @@ PlaylistModule.prototype.queueStandard = function (user, data) {
|
||||||
this.channel.activeLock.lock();
|
this.channel.activeLock.lock();
|
||||||
this.semaphore.queue(function (lock) {
|
this.semaphore.queue(function (lock) {
|
||||||
var lib = self.channel.modules.library;
|
var lib = self.channel.modules.library;
|
||||||
if (lib && self.is(Flags.C_REGISTERED) && !util.isLive(data.type)) {
|
if (lib && self.channel.is(Flags.C_REGISTERED) && !util.isLive(data.type)) {
|
||||||
lib.getItem(data.id, function (err, item) {
|
lib.getItem(data.id, function (err, item) {
|
||||||
if (err && err !== "Item not in library") {
|
if (err && err !== "Item not in library") {
|
||||||
error(err+"");
|
error(err+"");
|
||||||
|
|
Loading…
Reference in New Issue