1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-25 23:21:41 +03:00

Now ensures setReady does not steals, on error, the machine to the user

This commit is contained in:
Adolfo Gómez García 2020-05-29 04:48:14 +02:00
parent 1959051fe4
commit b48bea14d2

View File

@ -419,7 +419,12 @@ class UserServiceManager:
logger.debug('Service %s is usable, checking it via setReady', userService)
userServiceInstance = userService.getInstance()
state = userServiceInstance.setReady()
try:
state = userServiceInstance.setReady()
except Exception as e:
logger.warn('Could not check readyness of %s: %s', userService, e)
return False
logger.debug('State: %s', state)
if state == State.FINISHED: