This commit is contained in:
2021-02-16 23:42:13 +08:00
parent cc1daf9e37
commit 045e73bd63
3 changed files with 18 additions and 18 deletions
+6 -1
View File
@@ -127,7 +127,12 @@ abstract class Pool extends Component
public function createConnect(array $config, string $coroutineName, callable $createHandler): PDO|Redis|false
{
if (Context::hasContext('create:connect:' . $coroutineName)) {
return false;
while (true){
if (Context::hasContext($coroutineName)){
break;
}
}
return true;
}
Context::setContext('create:connect:' . $coroutineName, 1);