From c0b00c3f14e177ddbc49e9369d2277ea78476dc2 Mon Sep 17 00:00:00 2001 From: ncteisen Date: Thu, 14 Dec 2017 11:30:38 -0800 Subject: [PATCH] Fix executor tsan bug --- src/core/lib/iomgr/executor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/lib/iomgr/executor.cc b/src/core/lib/iomgr/executor.cc index b7288d5bf3a..67a0412dc38 100644 --- a/src/core/lib/iomgr/executor.cc +++ b/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); }