Rewrite while if return as do while

main
Nils Adermann 4 years ago
parent c043fe841b
commit d665301368

@ -336,11 +336,9 @@ class HttpDownloader
*/ */
public function wait($index = null) public function wait($index = null)
{ {
while (true) { do {
if (!$this->countActiveJobs($index)) { $jobCount = $this->countActiveJobs($index);
return; } while ($jobCount);
}
}
} }
/** /**

Loading…
Cancel
Save