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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy