This commit is contained in:
2021-01-04 18:45:08 +08:00
parent 22b34ac0fc
commit 29fe4f59b2
4 changed files with 8 additions and 3 deletions
+3
View File
@@ -108,6 +108,9 @@ abstract class Pool extends Component
*/
public function createConnect(array $config, string $coroutineName, callable $createHandler): void
{
if ($this->size($coroutineName) > 0) {
return;
}
if (Context::hasContext('create:connect:' . $coroutineName)) {
return;
}