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:
parent
c75a8514a1
commit
c6b5d4fd17
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user