Skip to content
Snippets Groups Projects
Commit 6de6cbf5 authored by Michael Lumish's avatar Michael Lumish
Browse files

Merge pull request #2961 from stanley-cheung/php_waitforready

php: fixed constant typo
parents 9038579e fea1f68f
No related branches found
No related tags found
No related merge requests found
...@@ -110,10 +110,10 @@ class BaseStub { ...@@ -110,10 +110,10 @@ class BaseStub {
} }
private function _checkConnectivityState($new_state) { private function _checkConnectivityState($new_state) {
if ($new_state == Grpc\CHANNEL_READY) { if ($new_state == \Grpc\CHANNEL_READY) {
return true; return true;
} }
if ($new_state == Grpc\CHANNEL_FATAL_ERROR) { if ($new_state == \Grpc\CHANNEL_FATAL_FAILURE) {
throw new Exception('Failed to connect to server'); throw new Exception('Failed to connect to server');
} }
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment