mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Clean up some stuff when clients disconnect
This commit is contained in:
parent
5fc4948ad2
commit
9b0306d5b5
1 changed files with 3 additions and 1 deletions
|
@ -167,8 +167,10 @@ class DelugeRPCProtocol(Protocol):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# We need to remove this session from the authmanager
|
# We need to remove this session from various dicts
|
||||||
del self.factory.authorized_sessions[self.transport.sessionno]
|
del self.factory.authorized_sessions[self.transport.sessionno]
|
||||||
|
del self.factory.session_protocols[self.transport.sessionno]
|
||||||
|
del self.factory.interested_events[self.transport.sessionno]
|
||||||
|
|
||||||
log.info("Deluge client disconnected: %s", reason.value)
|
log.info("Deluge client disconnected: %s", reason.value)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue