diff --git a/CHANGELOG b/CHANGELOG index 076e3486..ebd6b26e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +### 1.0.6 + +- Fix issue in NativeReactor causing `stop()` to be delayed by + one second. + ### 1.0.5 - Convert general `RuntimeException` to more specific diff --git a/lib/NativeReactor.php b/lib/NativeReactor.php index ebf3b675..783ce1db 100644 --- a/lib/NativeReactor.php +++ b/lib/NativeReactor.php @@ -177,7 +177,7 @@ private function doTick($noWait) { } // If an immediately watcher called stop() we pull out here - if ($this->state <= self::STOPPING) { + if ($this->state <= self::STOPPED) { return; }