Fix invalidating the torrent status and torrent_info prior to building

the status dict
This commit is contained in:
Andrew Resch 2008-11-22 08:47:16 +00:00
parent 9698b36523
commit e0356b7f10

View file

@ -464,9 +464,6 @@ class Torrent:
"peers": self.get_peers,
}
self.status = None
self.torrent_info = None
# Create the desired status dictionary and return it
status_dict = {}
@ -481,6 +478,9 @@ class Torrent:
elif key in fns:
status_dict[key] = fns[key]()
self.status = None
self.torrent_info = None
return status_dict
def apply_options(self):