Fix unhandled exception when adding a torrent to the session

This commit is contained in:
Andrew Resch 2010-08-21 12:53:44 -07:00
parent db9b5580d7
commit 8586cda4e0
1 changed files with 1 additions and 1 deletions

View File

@ -241,9 +241,9 @@ class SessionProxy(component.Component):
def on_torrent_added(self, torrent_id):
self.torrents[torrent_id] = [time.time() - self.cache_time - 1, {}]
self.cache_times[torrent_id] = {}
def on_status(status):
self.torrents[torrent_id][1].update(status)
self.cache_times[torrent_id] = {}
t = time.time()
for key in status:
self.cache_times[torrent_id][key] = t