Skip to content

Commit

Permalink
Changed getFailRound to getFailround
Browse files Browse the repository at this point in the history
Changed onFailSwitch to onFailswitch
  • Loading branch information
andot committed Sep 3, 2016
1 parent 800b12b commit c900d1d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Hprose/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ abstract class Client extends HandlerManager {
public $byref = false;
public $simple = false;
public $onError = null;
public $onFailSwitch = null;
public $onFailswitch = null;
private $methodCache = array();

private static $clientFactories = array();
Expand Down Expand Up @@ -141,7 +141,7 @@ public final function setFailswitch($failswitch) {
$this->failswitch = $failswitch;
}

public final function getFailRound() {
public final function getFailround() {
return $this->failround;
}

Expand Down Expand Up @@ -265,9 +265,9 @@ private function failswitch() {
else {
$this->failround++;
}
$onFailSwitch = $this->onFailSwitch;
if (is_callable($onFailSwitch)) {
call_user_func($onFailSwitch, $this);
$onFailswitch = $this->onFailswitch;
if (is_callable($onFailswitch)) {
call_user_func($onFailswitch, $this);
}
}

Expand Down

0 comments on commit c900d1d

Please sign in to comment.