aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-05-04 21:27:01 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-05-04 21:27:01 -0700
commit66918a6106476cbd60137c725529cb22ab958b14 (patch)
tree69fbb82297a1555e371a00b4429c4b4ea0b4e5c0 /src/core/lib
parent2e8993f07c90432b847cf615628afadbb5f876b7 (diff)
simplify
Diffstat (limited to 'src/core/lib')
-rw-r--r--src/core/lib/iomgr/timer_manager.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/lib/iomgr/timer_manager.c b/src/core/lib/iomgr/timer_manager.c
index dd7120695c..464907b454 100644
--- a/src/core/lib/iomgr/timer_manager.c
+++ b/src/core/lib/iomgr/timer_manager.c
@@ -116,8 +116,7 @@ static void timer_thread(void *unused) {
gpr_mu_lock(&g_mu);
// remove a waiter from the pool, and start another thread if necessary
--g_waiter_count;
- bool start_thread = g_waiter_count == 0;
- if (start_thread && g_threaded) {
+ if (g_waiter_count == 0 && g_threaded) {
start_timer_thread_and_unlock();
} else {
// if there's no thread waiting with a timeout, kick an existing waiter