This commit is contained in:
2020-09-05 01:14:51 +08:00
parent 8540154172
commit aea9024f95
+1 -1
View File
@@ -227,7 +227,7 @@ class Connection extends Pool
*/ */
private function nowClient($coroutineName, $config) private function nowClient($coroutineName, $config)
{ {
if ($this->hasItem($coroutineName)) { if ($this->size($coroutineName) > 0) {
return $this->getByChannel($coroutineName, $config); return $this->getByChannel($coroutineName, $config);
} }
$client = $this->createConnect($config['cds'], $config['username'], $config['password']); $client = $this->createConnect($config['cds'], $config['username'], $config['password']);