diff options
-rw-r--r-- | src/core/iomgr/alarm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/iomgr/alarm.c b/src/core/iomgr/alarm.c index 5860834de3..3b7092449a 100644 --- a/src/core/iomgr/alarm.c +++ b/src/core/iomgr/alarm.c @@ -307,6 +307,10 @@ static int run_some_expired_alarms(gpr_mu *drop_mu, gpr_timespec now, /* TODO(ctiller): verify that there are any alarms (atomically) here */ + if (gpr_time_cmp(g_shard_queue[0]->min_deadline, now) >= 0) { + return 0; + } + if (gpr_mu_trylock(&g_checker_mu)) { gpr_mu_lock(&g_mu); |