This commit is contained in:
2021-07-05 11:04:40 +08:00
parent 6cdf8052e6
commit 77b457b620
+2
View File
@@ -299,9 +299,11 @@ abstract class Pool extends Component
*/
public function push(string $name, mixed $client)
{
var_dump($name);
if (Coroutine::getCid() === -1) {
return;
}
var_dump($name, $client);
$channel = $this->getChannel($name);
if (!$channel->isFull()) {
$channel->push($client);