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:
parent
7d4bf6c8d2
commit
b2028511f5
1 changed files with 1 additions and 0 deletions
|
|
@ -113,6 +113,7 @@ class ServerSessionHandler(SessionHandler):
|
||||||
"""
|
"""
|
||||||
session = self.sessions.get(sessid, None)
|
session = self.sessions.get(sessid, None)
|
||||||
if session:
|
if session:
|
||||||
|
session.disconnect()
|
||||||
del self.sessions[session.sessid]
|
del self.sessions[session.sessid]
|
||||||
self.session_count(-1)
|
self.session_count(-1)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue