mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 20:14:13 +00:00
Clean up some stuff when clients disconnect
This commit is contained in:
parent
5fc4948ad2
commit
9b0306d5b5
@ -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…
x
Reference in New Issue
Block a user