This commit is contained in:
2021-01-19 18:01:33 +08:00
parent e71812d41c
commit 293042cce5
+2 -2
View File
@@ -35,8 +35,8 @@ abstract class Pool extends Component
if (isset($this->_items[$name]) && $this->_items[$name] instanceof Channel) { if (isset($this->_items[$name]) && $this->_items[$name] instanceof Channel) {
return; return;
} }
$this->_items[$name] = new Channel($max); $this->_items[$name] = new Channel((int)$max);
$this->max = $max; $this->max = (int)$max;
} }
/** /**