1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 05:11:42 +01:00

Don't stop when there are immediates left

This commit is contained in:
Chris Wright 2014-11-26 13:50:02 +00:00
parent c75a8514a1
commit c6b5d4fd17

View File

@ -111,7 +111,7 @@ class NativeReactor implements Reactor {
if ($this->readStreams || $this->writeStreams) {
$this->selectActionableStreams($timeToNextAlarm);
} elseif (!$this->alarmOrder) {
} elseif ((!($this->alarmOrder) || !$this->immediates)) {
$this->stop();
} elseif ($timeToNextAlarm > 0) {
usleep($timeToNextAlarm * self::$MICROSECOND);