Clean up some stuff when clients disconnect

This commit is contained in:
Andrew Resch 2009-02-04 03:00:55 +00:00
parent 5fc4948ad2
commit 9b0306d5b5

View File

@ -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.session_protocols[self.transport.sessionno]
del self.factory.interested_events[self.transport.sessionno]
log.info("Deluge client disconnected: %s", reason.value)