filereader improvement
This commit is contained in:
parent
8e899b64ba
commit
41c19153a3
@ -41,17 +41,11 @@ class AsynchronousFileReader {
|
||||
*/
|
||||
public function appendData() {
|
||||
foreach ($this->requests as $key => $request) {
|
||||
try {
|
||||
if ($request->socketPerform()) {
|
||||
$request->socketSelect();
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
if ($e->getMessage() === 'Cannot perform if there are no requests in queue.') {
|
||||
}else{
|
||||
unset($this->requests[$key]);
|
||||
} else {
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user