mirror of
https://github.com/tuna/tunasync.git
synced 2025-06-15 14:12:47 +00:00
bug fix
This commit is contained in:
parent
f9c7da5ba7
commit
0468b0614d
@ -144,7 +144,6 @@ class TUNASync(object):
|
|||||||
for mirror_opt in self._settings["mirrors"]:
|
for mirror_opt in self._settings["mirrors"]:
|
||||||
name = mirror_opt["name"]
|
name = mirror_opt["name"]
|
||||||
newMirCfg = MirrorConfig(self, mirror_opt)
|
newMirCfg = MirrorConfig(self, mirror_opt)
|
||||||
self.status_manager.refresh_mirror(name)
|
|
||||||
|
|
||||||
if name in self._mirrors:
|
if name in self._mirrors:
|
||||||
if newMirCfg.compare(self._mirrors[name]):
|
if newMirCfg.compare(self._mirrors[name]):
|
||||||
@ -170,6 +169,8 @@ class TUNASync(object):
|
|||||||
print("New mirror: {}".format(name))
|
print("New mirror: {}".format(name))
|
||||||
self.run_provider(name)
|
self.run_provider(name)
|
||||||
|
|
||||||
|
self.status_manager.refresh_mirror(name)
|
||||||
|
|
||||||
def run_forever(self):
|
def run_forever(self):
|
||||||
while 1:
|
while 1:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user