Fixed the sending of timeout text. Resolves #962.
This commit is contained in:
parent
937bd01fb8
commit
1a42ca8006
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ def _portal_maintenance():
|
||||||
reason = "Idle timeout exceeded, disconnecting."
|
reason = "Idle timeout exceeded, disconnecting."
|
||||||
for session in [sess for sess in PORTAL_SESSIONS.values()
|
for session in [sess for sess in PORTAL_SESSIONS.values()
|
||||||
if (now - sess.cmd_last) > _IDLE_TIMEOUT]:
|
if (now - sess.cmd_last) > _IDLE_TIMEOUT]:
|
||||||
session.data_out(text=reason)
|
session.data_out(text=[[reason], {}])
|
||||||
PORTAL_SESSIONS.disconnect(session)
|
PORTAL_SESSIONS.disconnect(session)
|
||||||
|
|
||||||
if _IDLE_TIMEOUT > 0:
|
if _IDLE_TIMEOUT > 0:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue