From 9f76a3f16e0be7c845d47d8b4f3fbb8b9fe38e83 Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Mon, 16 Nov 2015 03:02:13 +0100 Subject: [PATCH] Fix NativeReactor::stop() being delayed, prepare tag 1.0.6 --- CHANGELOG | 5 +++++ lib/NativeReactor.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; }