Skip to content

Commit

Permalink
合理性调整
Browse files Browse the repository at this point in the history
  • Loading branch information
yf committed Nov 26, 2018
1 parent aefcd82 commit 00db449
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Pool/AbstractPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
}

/*
Expand Down

0 comments on commit 00db449

Please sign in to comment.