forked from shaba/openuds
Fixed client logou due to idle log
This commit is contained in:
parent
5e7502f221
commit
0282086065
@ -136,7 +136,7 @@ class UDSActorClient(threading.Thread): # pylint: disable=too-many-instance-att
|
|||||||
self._running = False
|
self._running = False
|
||||||
self._forceLogoff = True
|
self._forceLogoff = True
|
||||||
|
|
||||||
def checkIdle(self):
|
def checkIdle(self) -> None:
|
||||||
if self._loginInfo is None or not self._loginInfo.max_idle: # No idle check
|
if self._loginInfo is None or not self._loginInfo.max_idle: # No idle check
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -155,11 +155,11 @@ class UDSActorClient(threading.Thread): # pylint: disable=too-many-instance-att
|
|||||||
|
|
||||||
if remainingTime <= 0:
|
if remainingTime <= 0:
|
||||||
logger.info('User has been idle for too long, exiting from session')
|
logger.info('User has been idle for too long, exiting from session')
|
||||||
self._extraLogoff=' (idle: {} vs {})'.format(idleTime, self.maxIdleTime)
|
self._extraLogoff = ' (idle: {} vs {})'.format(int(idleTime), self._loginInfo.max_idle)
|
||||||
self._running = False
|
self._running = False
|
||||||
self._forceLogoff = True
|
self._forceLogoff = True
|
||||||
|
|
||||||
def run(self):
|
def run(self) -> None:
|
||||||
logger.debug('UDS Actor thread')
|
logger.debug('UDS Actor thread')
|
||||||
self._listener.start() # async listener for service
|
self._listener.start() # async listener for service
|
||||||
self._running = True
|
self._running = True
|
||||||
|
Loading…
Reference in New Issue
Block a user