diff --git a/System/Pool/Connection.php b/System/Pool/Connection.php index bce3a801..fcb1eccc 100644 --- a/System/Pool/Connection.php +++ b/System/Pool/Connection.php @@ -156,8 +156,8 @@ class Connection extends Pool if (Context::hasContext($coroutineName)) { return Context::getContext($coroutineName); } - if ($this->size($coroutineName) < 1) { -// if ($this->size($coroutineName) < 1 && $this->hasCreate[$coroutineName] < $this->max) { +// if ($this->size($coroutineName) < 1) { + if ($this->size($coroutineName) < 1 && $this->hasCreate[$coroutineName] < $this->max) { return $this->saveClient($coroutineName, $this->nowClient($coroutineName, $config)); } [$timeout, $connection] = $client = $this->get($coroutineName);