diff --git a/deluge/core/rpcserver.py b/deluge/core/rpcserver.py index 5e78267b8..3ef39e80a 100644 --- a/deluge/core/rpcserver.py +++ b/deluge/core/rpcserver.py @@ -437,7 +437,7 @@ class RPCServer(component.Component): """ session_id = self.get_session_id() - if session_id > -1: + if session_id > -1 and session_id in self.factory.authorized_sessions: return self.factory.authorized_sessions[session_id][1] else: # No connections made yet