8000 Merge branch 'fix-eventloop-read-end' of https://github.com/clue/reac… · Undefined-Variables/event-loop@78c4bf5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 78c4bf5

Browse files
committed
Merge branch 'fix-eventloop-read-end' of https://github.com/clue/react into clue-fix-eventloop-read-end
2 parents ca257c8 + 046c9d8 commit 78c4bf5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

StreamSelectLoop.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ protected function runStreamSelect()
137137
if (stream_select($read, $write, $except, 0, $this->getNextEventTimeInMicroSeconds()) > 0) {
138138
if ($read) {
139139
foreach ($read as $stream) {
140+
if (!isset($this->readListeners[(int) $stream])) {
141+
continue;
142+
}
143+
140144
$listener = $this->readListeners[(int) $stream];
141145
call_user_func($listener, $stream, $this);
142146
}

0 commit comments

Comments
 (0)
0