aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/client_config/subchannel_call_holder.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-07-18 08:53:49 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-07-18 08:53:49 -0700
commit9d01848ef2a933d50e5d7ed95598788614d70bc8 (patch)
tree3ff07a7b064aa52e96b25fd1d6fd74e917100824 /src/core/ext/client_config/subchannel_call_holder.c
parentc9e10218e1f13135958c29201d494f7703f526f0 (diff)
Fixes
Diffstat (limited to 'src/core/ext/client_config/subchannel_call_holder.c')
-rw-r--r--src/core/ext/client_config/subchannel_call_holder.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ext/client_config/subchannel_call_holder.c b/src/core/ext/client_config/subchannel_call_holder.c
index 7eb17c713a..b10b204ff2 100644
--- a/src/core/ext/client_config/subchannel_call_holder.c
+++ b/src/core/ext/client_config/subchannel_call_holder.c
@@ -207,6 +207,10 @@ typedef struct {
static void retry_waiting_locked(grpc_exec_ctx *exec_ctx,
grpc_subchannel_call_holder *holder) {
+ if (holder->waiting_ops_count == 0) {
+ return;
+ }
+
retry_ops_args *a = gpr_malloc(sizeof(*a));
a->ops = holder->waiting_ops;
a->nops = holder->waiting_ops_count;