Fix issue when adding torrents without a 'session'. This can happen
when a plugin adds a torrent, like how the AutoAdd plugin works. The user that adds this torrent will be an empty string.
This commit is contained in:
parent
6c3b216b40
commit
b9caa4eeeb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue