mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 00:23:25 +02:00
Added force kicking.
This commit is contained in:
@@ -29,8 +29,8 @@ module.exports = function GroupServiceFactory(
|
||||
})
|
||||
}
|
||||
|
||||
groupService.kick = function (device) {
|
||||
if (!device.usable) {
|
||||
groupService.kick = function (device, force) {
|
||||
if (!force && !device.usable) {
|
||||
return Promise.reject(new Error('Device is not usable'))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user