aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/php/lib/Grpc/BaseStub.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/php/lib/Grpc/BaseStub.php b/src/php/lib/Grpc/BaseStub.php
index 9d6a77b855..2e980c5eed 100755
--- a/src/php/lib/Grpc/BaseStub.php
+++ b/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;