Quote:
Originally Posted by Jiaz
@mgpai: you should update plugin to only disable the correct mirrors ... Check against the running download link
|
It does check against running download and disable the correct mirror.
Code:
if (
link2.name == link.name &&
link2.conditionalSkipReason.className == "MirrorLoading"
)
link = running lnk
link2 = current iteration link
current iteration link name == running link name
current iteration link className == "MirrorLoading"
If current iteration link is running link, className will not be equal to "MirrorLoading" (no csr, no classname = catch error), so only correct links (which match running link name) will be disabled.
Or is there any fault in logic? Either way, if there a better method can you please provide psuedo code? Let me know if I should contact you by email.
P.S.: I wanted to avoid using interval trigger. Will email you the script based on your method.