diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index 84e00451..e22016eb 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -166,6 +166,7 @@ abstract class Pool extends Component /** * @param string $name + * @throws Exception */ public function clean(string $name) { @@ -175,6 +176,8 @@ abstract class Pool extends Component $channel = $this->_items[$name]; while ([$time, $client] = $channel->pop(0.001)) { unset($client); + + $this->desc($name); } } diff --git a/System/Pool/Redis.php b/System/Pool/Redis.php index f8f155b6..9f2606a9 100644 --- a/System/Pool/Redis.php +++ b/System/Pool/Redis.php @@ -137,7 +137,7 @@ class Redis extends Pool return; } - $this->_create -= 1; + $this->desc($coroutineName); $this->remove($coroutineName); $this->clean($coroutineName);