Remove call from queued picks when failing it due to channel destruction

pull/20128/head
Alexander Polcyn 5 years ago
parent be4318810c
commit aa2a65faed
  1. 1
      src/core/ext/filters/client_channel/client_channel.cc

@ -3881,6 +3881,7 @@ void CallData::StartPickLocked(void* arg, grpc_error* error) {
GRPC_ERROR_UNREF(result.error); GRPC_ERROR_UNREF(result.error);
GRPC_CLOSURE_SCHED(&calld->pick_closure_, GRPC_CLOSURE_SCHED(&calld->pick_closure_,
GRPC_ERROR_REF(disconnect_error)); GRPC_ERROR_REF(disconnect_error));
if (calld->pick_queued_) calld->RemoveCallFromQueuedPicksLocked(elem);
break; break;
} }
// If wait_for_ready is false, then the error indicates the RPC // If wait_for_ready is false, then the error indicates the RPC

Loading…
Cancel
Save