Merge pull request #2961 from stanley-cheung/php_waitforready

php: fixed constant typo
pull/2970/head
Michael Lumish 10 years ago
commit 6de6cbf599
  1. 4
      src/php/lib/Grpc/BaseStub.php

@ -110,10 +110,10 @@ class BaseStub {
}
private function _checkConnectivityState($new_state) {
if ($new_state == Grpc\CHANNEL_READY) {
if ($new_state == \Grpc\CHANNEL_READY) {
return true;
}
if ($new_state == Grpc\CHANNEL_FATAL_ERROR) {
if ($new_state == \Grpc\CHANNEL_FATAL_FAILURE) {
throw new Exception('Failed to connect to server');
}
return false;

Loading…
Cancel
Save