Fix invalidating the torrent status and torrent_info prior to building
the status dict
This commit is contained in:
parent
9698b36523
commit
e0356b7f10
@ -464,9 +464,6 @@ class Torrent:
|
|||||||
"peers": self.get_peers,
|
"peers": self.get_peers,
|
||||||
}
|
}
|
||||||
|
|
||||||
self.status = None
|
|
||||||
self.torrent_info = None
|
|
||||||
|
|
||||||
# Create the desired status dictionary and return it
|
# Create the desired status dictionary and return it
|
||||||
status_dict = {}
|
status_dict = {}
|
||||||
|
|
||||||
@ -481,6 +478,9 @@ class Torrent:
|
|||||||
elif key in fns:
|
elif key in fns:
|
||||||
status_dict[key] = fns[key]()
|
status_dict[key] = fns[key]()
|
||||||
|
|
||||||
|
self.status = None
|
||||||
|
self.torrent_info = None
|
||||||
|
|
||||||
return status_dict
|
return status_dict
|
||||||
|
|
||||||
def apply_options(self):
|
def apply_options(self):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user