Fix get_torrent_status by creating a status dict from the cache after it's been updated
This commit is contained in:
parent
a15500d472
commit
84b33c3418
|
@ -117,7 +117,7 @@ class SessionProxy(component.Component):
|
|||
def on_status(result, torrent_id):
|
||||
self.torrents[torrent_id][0] = time.time()
|
||||
self.torrents[torrent_id][1].update(result)
|
||||
return result
|
||||
return self.create_status_dict([torrent_id], keys)[torrent_id]
|
||||
return d.addCallback(on_status, torrent_id)
|
||||
else:
|
||||
d = client.core.get_torrent_status(torrent_id, keys, True)
|
||||
|
|
Loading…
Reference in New Issue