Fixing a bug with not calling the disconnect hook when killing the client uncleanly. Resolves Issue 258. Thanks to user Zeta142125 for the help.

This commit is contained in:
Griatch 2012-09-25 07:53:11 +02:00
parent 7d4bf6c8d2
commit b2028511f5

View file

@ -113,6 +113,7 @@ class ServerSessionHandler(SessionHandler):
"""
session = self.sessions.get(sessid, None)
if session:
session.disconnect()
del self.sessions[session.sessid]
self.session_count(-1)