改名
This commit is contained in:
@@ -128,8 +128,10 @@ abstract class Pool extends Component
|
|||||||
return $client;
|
return $client;
|
||||||
}
|
}
|
||||||
if (Context::hasContext('create:connect:' . $coroutineName)) {
|
if (Context::hasContext('create:connect:' . $coroutineName)) {
|
||||||
|
while ($client = Context::getContext($coroutineName)) {
|
||||||
Coroutine::sleep(0.001);
|
Coroutine::sleep(0.001);
|
||||||
return $this->createConnect($config, $coroutineName, $createHandler);
|
}
|
||||||
|
return $client;
|
||||||
}
|
}
|
||||||
Context::setContext('create:connect:' . $coroutineName, 1);
|
Context::setContext('create:connect:' . $coroutineName, 1);
|
||||||
|
|
||||||
@@ -206,7 +208,6 @@ abstract class Pool extends Component
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Channel[]
|
* @return Channel[]
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user