avoid a silly typeError in the event of an error
parent
834c96a4fc
commit
adfd1eaaa2
|
@ -1044,7 +1044,7 @@ module.exports.create = function (conf, _cb) {
|
|||
|
||||
getWeakLock: function (channelName, _cb) {
|
||||
var cb = Util.once(Util.mkAsync(_cb));
|
||||
if (!isValidChannelId(channelName)) { return void cb(new Error('EINVAL')); }
|
||||
//if (!isValidChannelId(channelName)) { return void cb(new Error('EINVAL')); } // XXX
|
||||
schedule.unordered(channelName, cb);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue