Fix get_torrent_status returning all keys when cache is outdated

This commit is contained in:
John Garland 2010-04-08 00:41:48 +10:00
parent 117fe3bb43
commit bc165133d0
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 self.torrents[torrent_id][1]
return result
return d.addCallback(on_status, torrent_id)
else:
d = client.core.get_torrent_status(torrent_id, keys, True)