mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 03:53:28 +02:00
Fix direct device control not extending owner timeout.
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user