mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Extend group timeout on any adb connect activity.
This commit is contained in:
@@ -35,6 +35,9 @@ module.exports = syrup.serial()
|
||||
|
||||
server.on('connection', function(conn) {
|
||||
log.info('New remote ADB connection from %s', conn.remoteAddress)
|
||||
conn.on('userActivity', function() {
|
||||
group.keepalive()
|
||||
})
|
||||
})
|
||||
|
||||
server.on('error', reject)
|
||||
|
||||
@@ -66,6 +66,12 @@ module.exports = syrup.serial()
|
||||
})
|
||||
}
|
||||
|
||||
plugin.keepalive = function() {
|
||||
if (currentGroup) {
|
||||
channels.keepalive(currentGroup.group)
|
||||
}
|
||||
}
|
||||
|
||||
plugin.leave = function() {
|
||||
return plugin.get()
|
||||
.then(function(group) {
|
||||
|
||||
Reference in New Issue
Block a user