[Core] Update tracker_host when setting new tracker status

* Fixes the tracker_host not updating when a tracker announce
   is received from a different tracker and sets the tracker status.
This commit is contained in:
Calum Lind 2015-11-27 12:03:45 +00:00
parent 9f3b2f3167
commit dd34492e16

View file

@ -384,6 +384,7 @@ class Torrent(object):
def set_tracker_status(self, status):
"""Sets the tracker status"""
self.tracker_host = None
self.tracker_status = self.get_tracker_host() + ": " + status
def update_state(self):