1
0
Fork 0

Rewrite while if return as do while

pull/9604/head
Nils Adermann 2021-01-12 21:04:52 +01:00
parent c043fe841b
commit d665301368
1 changed files with 3 additions and 5 deletions

View File

@ -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);
}
}
} }
/** /**