mirror of
https://github.com/danog/amp.git
synced 2024-11-27 04:24:42 +01:00
I/O watchers must be always cleared, even if disabled
Not clearing I/O watcher lead to a leftover disabled watcher, so that streamIdPollMap still contains a disabled watcher with the flag. Which may lead to a new watcher of same type not triggering an uv_poll_start().
This commit is contained in:
parent
78621fd66b
commit
80fb080470
@ -427,6 +427,8 @@ class UvReactor implements SignalReactor {
|
||||
@uv_timer_stop($watcher->uvHandle);
|
||||
break;
|
||||
}
|
||||
} elseif ($watcher->type == Watcher::IO_READER || $watcher->type == Watcher::IO_WRITER) {
|
||||
$this->clearPollFromWatcher($watcher);
|
||||
}
|
||||
|
||||
if (PHP_MAJOR_VERSION < 7) {
|
||||
|
Loading…
Reference in New Issue
Block a user