aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-05-29 16:33:01 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-05-29 16:33:01 -0700
commit3f37fd95b20e27a6dd34a0d2be3222777269a75d (patch)
tree8254c9055e694b91a58270d91c40dc4c8a4a08aa /src
parentbac414224bfb11549f59495ce3c5a43f09ead655 (diff)
Clear alarm list more aggressively
Diffstat (limited to 'src')
-rw-r--r--src/core/iomgr/iomgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/iomgr/iomgr.c b/src/core/iomgr/iomgr.c
index 7e6315a8cc..9bbff4104c 100644
--- a/src/core/iomgr/iomgr.c
+++ b/src/core/iomgr/iomgr.c
@@ -107,6 +107,7 @@ void grpc_iomgr_shutdown(void) {
gpr_timespec shutdown_deadline =
gpr_time_add(gpr_now(), gpr_time_from_seconds(10));
+ grpc_alarm_list_shutdown();
gpr_mu_lock(&g_mu);
g_shutdown = 1;
@@ -153,7 +154,6 @@ void grpc_iomgr_shutdown(void) {
gpr_event_wait(&g_background_callback_executor_done, gpr_inf_future);
grpc_iomgr_platform_shutdown();
- grpc_alarm_list_shutdown();
gpr_mu_destroy(&g_mu);
gpr_cv_destroy(&g_rcv);
}