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) public function flush($name, $retain_number)
{ {
$channel = $this->channel($name); if ($this->hasChannel($name)) {
$this->pop($channel, $retain_number); $this->pop($this->channel($name), $retain_number);
}
} }