Tools download endless loop in windows fix, code was synchronous anyway no need for while