mirror of
https://github.com/dkmstr/openuds.git
synced 2025-02-03 13:47:14 +03:00
Merge remote-tracking branch 'origin/v2.0'
This commit is contained in:
commit
729b0310bd
@ -33,8 +33,8 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import sys
|
||||
from PyQt4 import QtGui
|
||||
from PyQt4 import QtCore
|
||||
from PyQt4 import QtGui # @UnresolvedImport
|
||||
from PyQt4 import QtCore # @UnresolvedImport
|
||||
import pickle
|
||||
import time
|
||||
import datetime
|
||||
|
@ -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
|
||||
|
@ -239,7 +239,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…
x
Reference in New Issue
Block a user