Skip to content

Commit

Permalink
Fixed retry.
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Sep 2, 2016
1 parent 268faf9 commit 86c32f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hprose/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ private function failswitch() {
if ($context->retried < $context->retry) {
$interval = ++$context->retried * 0.5;
if ($context->failswitch) {
$interval -= (count($this->uris) + 1) * 0.5;
$interval -= (count($this->uris) - 1) * 0.5;
}
if ($interval > 5) $interval = 5;
$self = $this;
Expand Down

0 comments on commit 86c32f3

Please sign in to comment.