binux / yaaw

Yet Another Aria2 Webui in pure HTML/CSS/Javascirpt
http://binux.github.io/yaaw/demo/
2.35k stars 404 forks source link

fix local variable conflict #137

Closed benstonezhang closed 4 years ago

benstonezhang commented 4 years ago

for function get_status(), there are 2 for loop: the outer one is loop on result.files, while the inner one loop on files.urls. Their local loop variable share the same name "i" and will cause infinite loop in special use case, change the name of inner one to "j" fix the issue.