aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/transport/connectivity_state.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-07-17 17:20:19 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-07-17 17:20:19 -0700
commitcf9a9334f56119d74a4b700f4ace6d8555ffb5fa (patch)
tree083698f178e37ba12271334bae0dbbb32284ca22 /src/core/transport/connectivity_state.c
parent286ca4be4dbb39ab992586b51819cd066e127124 (diff)
Enforce one of the state transitions
Diffstat (limited to 'src/core/transport/connectivity_state.c')
-rw-r--r--src/core/transport/connectivity_state.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/transport/connectivity_state.c b/src/core/transport/connectivity_state.c
index 85a8618af7..8bc7526e3c 100644
--- a/src/core/transport/connectivity_state.c
+++ b/src/core/transport/connectivity_state.c
@@ -108,6 +108,7 @@ void grpc_connectivity_state_set_with_scheduler(
if (tracker->current_state == state) {
return;
}
+ GPR_ASSERT(tracker->current_state != GRPC_CHANNEL_FATAL_FAILURE);
tracker->current_state = state;
while ((w = tracker->watchers)) {
tracker->watchers = w->next;