Fix check for channel being registered

This commit is contained in:
Calvin Montgomery 2014-05-20 20:48:19 -07:00
parent 1cc769b1ea
commit 39090fbe40
1 changed files with 1 additions and 1 deletions

View File

@ -379,7 +379,7 @@ PlaylistModule.prototype.queueStandard = function (user, data) {
this.channel.activeLock.lock();
this.semaphore.queue(function (lock) {
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) {
if (err && err !== "Item not in library") {
error(err+"");