diff --git a/src/Pool/AbstractPool.php b/src/Pool/AbstractPool.php index 7ff0bb0..4d7dca6 100644 --- a/src/Pool/AbstractPool.php +++ b/src/Pool/AbstractPool.php @@ -30,7 +30,9 @@ public function __construct($maxNum = 10,$intervalCheckTime = 30*1000,$idleGCTim $this->max = $maxNum; $this->intervalCheckTime = $intervalCheckTime; $this->idleGCTime = $idleGCTime; - swoole_timer_tick($intervalCheckTime,[$this,'intervalCheck']); + if($intervalCheckTime > 0){ + swoole_timer_tick($intervalCheckTime,[$this,'intervalCheck']); + } } /*