This commit is contained in:
2021-01-04 18:54:27 +08:00
parent ba73fc77c3
commit c6411cc23f
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -153,7 +153,9 @@ abstract class Pool extends Component
*/
public function push(string $name, mixed $client)
{
$this->_items[$name]->push([time(), $client]);
if (!$this->_items[$name]->isFull()) {
$this->_items[$name]->push([time(), $client]);
}
unset($client);
}