This commit is contained in:
2023-02-07 17:46:41 +08:00
parent 17fd230ebb
commit da361fcca2
+3 -2
View File
@@ -41,8 +41,9 @@ class Pool extends Component
*/
public function flush($name, $retain_number)
{
$channel = $this->channel($name);
$this->pop($channel, $retain_number);
if ($this->hasChannel($name)) {
$this->pop($this->channel($name), $retain_number);
}
}