Rewrite while if return as do while
parent
c043fe841b
commit
d665301368
|
@ -336,11 +336,9 @@ class HttpDownloader
|
|||
*/
|
||||
public function wait($index = null)
|
||||
{
|
||||
while (true) {
|
||||
if (!$this->countActiveJobs($index)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
do {
|
||||
$jobCount = $this->countActiveJobs($index);
|
||||
} while ($jobCount);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue