mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-26 18:55:15 +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) {
|
server.on('connection', function(conn) {
|
||||||
log.info('New remote ADB connection from %s', conn.remoteAddress)
|
log.info('New remote ADB connection from %s', conn.remoteAddress)
|
||||||
|
conn.on('userActivity', function() {
|
||||||
|
group.keepalive()
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
server.on('error', reject)
|
server.on('error', reject)
|
||||||
|
|||||||
@@ -66,6 +66,12 @@ module.exports = syrup.serial()
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
plugin.keepalive = function() {
|
||||||
|
if (currentGroup) {
|
||||||
|
channels.keepalive(currentGroup.group)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
plugin.leave = function() {
|
plugin.leave = function() {
|
||||||
return plugin.get()
|
return plugin.get()
|
||||||
.then(function(group) {
|
.then(function(group) {
|
||||||
|
|||||||
Reference in New Issue
Block a user