This commit is contained in:
2021-07-05 11:05:19 +08:00
parent 77b457b620
commit 216bc1d894
+1 -2
View File
@@ -299,13 +299,12 @@ 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()) {
var_dump($name);
$channel->push($client);
}
unset($client);