Fixed the sending of timeout text. Resolves #962.

This commit is contained in:
Griatch 2016-04-18 21:23:54 +02:00
parent 937bd01fb8
commit 1a42ca8006

View file

@ -87,7 +87,7 @@ def _portal_maintenance():
reason = "Idle timeout exceeded, disconnecting."
for session in [sess for sess in PORTAL_SESSIONS.values()
if (now - sess.cmd_last) > _IDLE_TIMEOUT]:
session.data_out(text=reason)
session.data_out(text=[[reason], {}])
PORTAL_SESSIONS.disconnect(session)
if _IDLE_TIMEOUT > 0: