Enforce one of the state transitions

pull/2477/head
Craig Tiller 10 years ago
parent 286ca4be4d
commit cf9a9334f5
  1. 1
      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;

Loading…
Cancel
Save