Fix get_torrent_status by creating a status dict from the cache after it's been updated

This commit is contained in:
Andrew Resch 2010-04-08 17:09:55 -07:00
parent a15500d472
commit 84b33c3418
1 changed files with 1 additions and 1 deletions

View File

@ -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)