mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-12 19:28:42 +00:00
Fix issue when a client connection is lost that has been authenticated
This commit is contained in:
parent
8bcc7ea232
commit
9175ac16fd
1 changed files with 4 additions and 2 deletions
|
@ -169,8 +169,10 @@ class DelugeRPCProtocol(Protocol):
|
||||||
|
|
||||||
# We need to remove this session from various dicts
|
# 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]
|
if self.transport.sessionno in self.factory.session_protocols:
|
||||||
del self.factory.interested_events[self.transport.sessionno]
|
del self.factory.session_protocols[self.transport.sessionno]
|
||||||
|
if self.transport.sessionno in self.factory.interested_events:
|
||||||
|
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