forked from shaba/openuds
Includede persistent machines check idle also.
This commit is contained in:
parent
3528424892
commit
2eaa447155
@ -204,7 +204,7 @@ class LinuxOsManager(osmanagers.OSManager):
|
||||
'''
|
||||
On production environments, will return no idle for non removable machines
|
||||
'''
|
||||
if self._idle <= 0 or (settings.DEBUG is False and self._onLogout != 'remove'):
|
||||
if self._idle <= 0: # or (settings.DEBUG is False and self._onLogout != 'remove'):
|
||||
return None
|
||||
|
||||
return self._idle
|
||||
|
@ -217,7 +217,7 @@ class WindowsOsManager(osmanagers.OSManager):
|
||||
'''
|
||||
On production environments, will return no idle for non removable machines
|
||||
'''
|
||||
if self._idle <= 0 or (settings.DEBUG is False and self._onLogout != 'remove'):
|
||||
if self._idle <= 0: # or (settings.DEBUG is False and self._onLogout != 'remove'):
|
||||
return None
|
||||
|
||||
return self._idle
|
||||
|
Loading…
Reference in New Issue
Block a user