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

@@ -7,16 +7,14 @@ var wireutil = require('../../../wire/util')
module.exports = syrup.serial()
.dependency(require('../support/sub'))
.dependency(require('../support/push'))
.dependency(require('../support/channels'))
.dependency(require('../support/router'))
.dependency(require('./identity'))
.define(function(options, sub, push, channels, router, identity) {
.define(function(options, sub, push, router, identity) {
var log = logger.createLogger('device:plugins:solo')
var channel = wireutil.makePrivateChannel()
log.info('Subscribing to permanent channel "%s"', channel)
sub.subscribe(channel)
channels.register(channel, Infinity)
router.on(wire.ProbeMessage, function() {
push.send([