Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss291323003 committed Oct 11, 2018
1 parent 6346620 commit 43c9733
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Client/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ function addCall(string $service,string $action,...$args):Task

function exec(float $timeout = 0.5)
{
//避免为0 的时候,永远挂起
if($timeout <= 0){
$timeout = 1.0;
}
foreach ($this->tasks as $task){
$this->buildConnect($task,$timeout);
}
Expand Down

0 comments on commit 43c9733

Please sign in to comment.