filereader improvement

This commit is contained in:
kremsy 2014-07-05 20:28:12 +02:00
parent 8e899b64ba
commit 41c19153a3

View File

@ -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;
}
}
}
}