From 84b33c3418f2162e3de1091d9e93ff0e4fd1a50f Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Thu, 8 Apr 2010 17:09:55 -0700 Subject: [PATCH] Fix get_torrent_status by creating a status dict from the cache after it's been updated --- 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 441dfde08..42451ae65 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 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)