mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-14 13:34:21 +00:00
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
0a0383d075
commit
fdbd9e6687
@ -437,7 +437,7 @@ class RPCServer(component.Component):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
session_id = self.get_session_id()
|
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]
|
return self.factory.authorized_sessions[session_id][1]
|
||||||
else:
|
else:
|
||||||
# No connections made yet
|
# No connections made yet
|
||||||
|
Loading…
x
Reference in New Issue
Block a user