Change idle-timeout lock to 'noidletimeout' and add default lock to new Accounts
This commit is contained in:
parent
8a2e362b7c
commit
72e3498785
2 changed files with 3 additions and 2 deletions
|
|
@ -133,7 +133,7 @@ def _server_maintenance():
|
|||
for session in (sess for sess in SESSIONS.values()
|
||||
if (now - sess.cmd_last) > _IDLE_TIMEOUT):
|
||||
if not session.account or not \
|
||||
session.account.access(session.account, "no_idle_disconnect", default=False):
|
||||
session.account.access(session.account, "noidletimeout", default=False):
|
||||
SESSIONS.disconnect(session, reason=reason)
|
||||
|
||||
# Commenting this out, it is probably not needed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue