This commit is contained in:
2021-03-02 16:29:43 +08:00
parent ccf0a113ce
commit 01e210ed9f
+1 -1
View File
@@ -274,7 +274,7 @@ abstract class Pool extends Component
*/
public function clean(string $name)
{
if (Timer::exists($this->creates)) {
if ($this->creates > -1 && Timer::exists($this->creates)) {
Timer::clear($this->creates);
}
if (!Context::inCoroutine() || !isset($this->_items[$name])) {