Fix direct device control not extending owner timeout.

This commit is contained in:
Simo Kinnunen
2014-06-02 21:03:21 +09:00
parent 9239ee57b4
commit 3ea41c1a4e
4 changed files with 31 additions and 13 deletions

View File

@@ -6,8 +6,7 @@ var logger = require('../../../util/logger')
var wireutil = require('../../../wire/util')
module.exports = syrup.serial()
.dependency(require('./channels'))
.define(function(options, channels) {
.define(function(options) {
var log = logger.createLogger('device:support:sub')
// Input
@@ -21,7 +20,6 @@ module.exports = syrup.serial()
;[wireutil.global].forEach(function(channel) {
log.info('Subscribing to permanent channel "%s"', channel)
sub.subscribe(channel)
channels.register(channel, Infinity)
})
return sub