mirror of
https://git.deluge-torrent.org/deluge
synced 2025-09-20 08:28:33 +00:00
Fix #1943 - invalid session id when calling a rpc exported function from a plugin when no client is connected
This commit is contained in:
parent
6cb1fd76cc
commit
5dc6dbf216
1 changed files with 1 additions and 1 deletions
|
@ -492,7 +492,7 @@ class RPCServer(component.Component):
|
|||
:returns: the auth level
|
||||
:rtype: int
|
||||
"""
|
||||
if not self.listen:
|
||||
if not self.listen or not self.is_session_valid(self.get_session_id()):
|
||||
return AUTH_LEVEL_ADMIN
|
||||
return self.factory.authorized_sessions[self.get_session_id()][0]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue