Module: deluge Branch: master Commit: 84b33c3418f2162e3de1091d9e93ff0e4fd1a50f
Author: Andrew Resch <[email protected]> Date: Thu Apr 8 17:09:55 2010 -0700 Fix get_torrent_status by creating a status dict from the cache after it's been updated --- deluge/ui/sessionproxy.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/deluge/ui/sessionproxy.py b/deluge/ui/sessionproxy.py index 441dfde..42451ae 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) -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
