This commit is contained in:
2021-01-05 10:36:10 +08:00
parent 8a562264bb
commit c20c61fc5f
+2 -2
View File
@@ -120,11 +120,11 @@ abstract class Pool extends Component
}
Context::setContext('create:connect:' . $coroutineName, 1);
$client = call_user_func($createHandler, ...$config);
$this->push($coroutineName, call_user_func($createHandler, ...$config));
Context::deleteId('create:connect:' . $coroutineName);
return $client;
return $this->get($coroutineName)[1];
}