aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/iomgr
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-07-17 23:12:34 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-07-17 23:12:34 -0700
commit03dc655d2e856d5809135dd021cf17fa7ace5021 (patch)
tree979375dee598ce8fd97a58bf31b025db66bb2e8e /src/core/iomgr
parentb5980be9a08678212e5dbd6549b923f545d83539 (diff)
Fix state tracking, refcounting bugs
Diffstat (limited to 'src/core/iomgr')
-rw-r--r--src/core/iomgr/alarm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/iomgr/alarm.c b/src/core/iomgr/alarm.c
index 5718bbfc1c..7365aaa139 100644
--- a/src/core/iomgr/alarm.c
+++ b/src/core/iomgr/alarm.c
@@ -355,8 +355,9 @@ static int run_some_expired_alarms(gpr_mu *drop_mu, gpr_timespec now,
}
int grpc_alarm_check(gpr_mu *drop_mu, gpr_timespec now, gpr_timespec *next) {
- return run_some_expired_alarms(drop_mu, now, next,
- gpr_time_cmp(now, gpr_inf_future) != 0);
+ return run_some_expired_alarms(
+ drop_mu, now, next,
+ gpr_time_cmp(now, gpr_inf_future(GPR_CLOCK_REALTIME)) != 0);
}
gpr_timespec grpc_alarm_list_next_timeout(void) {