mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue