aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/executor.cc
diff options
context:
space:
mode:
authorGravatar ncteisen <ncteisen@gmail.com>2017-12-14 11:30:38 -0800
committerGravatar ncteisen <ncteisen@gmail.com>2017-12-14 11:30:38 -0800
commitc0b00c3f14e177ddbc49e9369d2277ea78476dc2 (patch)
treece9dfff2babf333302d2e0556b3947676008b384 /src/core/lib/iomgr/executor.cc
parentba6ca24a18a1afb6a8de2766a39c2f4c20277ce4 (diff)
Fix executor tsan bug
Diffstat (limited to 'src/core/lib/iomgr/executor.cc')
-rw-r--r--src/core/lib/iomgr/executor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/executor.cc b/src/core/lib/iomgr/executor.cc
index b7288d5bf3..67a0412dc3 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);
}