Fix executor tsan bug

pull/13776/head
ncteisen 7 years ago
parent ba6ca24a18
commit c0b00c3f14
  1. 2
      src/core/lib/iomgr/executor.cc

@ -242,7 +242,7 @@ static void executor_push(grpc_closure* closure, grpc_error* error,
}
continue;
}
if (grpc_closure_list_empty(ts->elems)) {
if (grpc_closure_list_empty(ts->elems) && !ts->shutdown) {
GRPC_STATS_INC_EXECUTOR_WAKEUP_INITIATED();
gpr_cv_signal(&ts->cv);
}

Loading…
Cancel
Save