Nullptr check

reviewable/pr20892/r1
Yash Tibrewal 5 years ago
parent 01ea1dea07
commit 2b8cd9a01b
  1. 4
      src/core/lib/iomgr/exec_ctx.cc

@ -176,6 +176,7 @@ grpc_millis ExecCtx::Now() {
void ExecCtx::Run(const DebugLocation& location, grpc_closure* closure,
grpc_error* error) {
if (closure != nullptr) {
#ifndef NDEBUG
if (closure->scheduled) {
gpr_log(GPR_ERROR,
@ -194,6 +195,9 @@ void ExecCtx::Run(const DebugLocation& location, grpc_closure* closure,
GPR_ASSERT(closure->cb != nullptr);
#endif
exec_ctx_sched(closure, error);
} else {
GRPC_ERROR_UNREF(error);
}
}
} // namespace grpc_core

Loading…
Cancel
Save