From bc165133d0da1636c2e86931f5a3c9983e7e84bd Mon Sep 17 00:00:00 2001 From: John Garland Date: Thu, 8 Apr 2010 00:41:48 +1000 Subject: [PATCH] Fix get_torrent_status returning all keys when cache is outdated --- deluge/ui/sessionproxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/sessionproxy.py b/deluge/ui/sessionproxy.py index 5cce250a6..441dfde08 100644 --- a/deluge/ui/sessionproxy.py +++ b/deluge/ui/sessionproxy.py @@ -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)