Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yf committed Dec 4, 2018
1 parent cfb0239 commit 2d551a5
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 @@ -173,7 +173,9 @@ public function invoke(callable $call,float $timeout = null)
$obj = $this->getObj($timeout);
if($obj){
try{
call_user_func($call,$obj);
$ret = call_user_func($call,$obj);
$this->recycleObj($obj);
return $ret;
}catch (\Throwable $throwable){
$this->recycleObj($obj);
throw $throwable;
Expand Down

0 comments on commit 2d551a5

Please sign in to comment.