1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-06 03:50:04 +02:00

Added force kicking.

This commit is contained in:
Gunther Brunner 2014-05-29 17:03:15 +09:00
parent 59261b3c98
commit 4b98da269b
3 changed files with 13 additions and 3 deletions

View file

@ -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'))
}