This commit is contained in:
2020-09-05 01:49:36 +08:00
parent b841dbd622
commit 39aa1c2237
2 changed files with 4 additions and 42 deletions
+1 -6
View File
@@ -124,12 +124,7 @@ abstract class Pool extends Component
*/
public function push($name, $client)
{
if (!isset($this->_items[$name])) {
return;
}
if (!$this->_items[$name]->isFull()) {
$this->_items[$name]->push([time(), $client]);
}
$this->_items[$name]->push([time(), $client]);
}