1
0
mirror of https://github.com/danog/amp.git synced 2024-11-30 04:29:08 +01:00

Throw from all stream_select() errors

Related to #265.
This commit is contained in:
Aaron Piotrowski 2019-03-04 08:54:33 -06:00
parent 272f78dcb2
commit ad27bea6c8
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

@ -174,13 +174,7 @@ class NativeDriver extends Driver
return;
}
$error = \error_get_last();
if (\strpos($error["message"], "unable to select") !== 0) {
return;
}
$this->error(new \Exception($error["message"]));
$this->error(new \RuntimeException(\error_get_last()["message"]));
}
foreach ($read as $stream) {