mirror of
https://github.com/openstf/stf
synced 2025-10-06 03:50:04 +02:00
Added force kicking.
This commit is contained in:
parent
59261b3c98
commit
4b98da269b
3 changed files with 13 additions and 3 deletions
|
@ -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'))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue