diff --git a/src/ExtEventLoop.php b/src/ExtEventLoop.php index 1bf35605..9db1de9d 100644 --- a/src/ExtEventLoop.php +++ b/src/ExtEventLoop.php @@ -57,7 +57,7 @@ function ($signal) { }, function ($signal) { if ($this->signals->count($signal) === 0) { - $this->signalEvents[$signal]->del(); + $this->signalEvents[$signal]->free(); unset($this->signalEvents[$signal]); } } diff --git a/src/ExtLibevLoop.php b/src/ExtLibevLoop.php index 06da125b..58e75b9f 100644 --- a/src/ExtLibevLoop.php +++ b/src/ExtLibevLoop.php @@ -55,6 +55,7 @@ function ($signal) { }, function ($signal) { if ($this->signals->count($signal) === 0) { + $this->signalEvents[$signal]->stop(); $this->loop->remove($this->signalEvents[$signal]); unset($this->signalEvents[$signal]); } @@ -100,6 +101,7 @@ public function removeReadStream($stream) if (isset($this->readEvents[$key])) { $this->readEvents[$key]->stop(); + $this->loop->remove($this->readEvents[$key]); unset($this->readEvents[$key]); } } @@ -110,6 +112,7 @@ public function removeWriteStream($stream) if (isset($this->writeEvents[$key])) { $this->writeEvents[$key]->stop(); + $this->loop->remove($this->writeEvents[$key]); unset($this->writeEvents[$key]); } }
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: