aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2016-11-28 15:00:53 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2016-11-28 15:00:53 -0800
commitda81d1a43deecd815b7d2520a2425f0afd1a858d (patch)
treed5074fc50e9701f524cbf6a55aaeff6cb4fc8ef7 /src/core/lib/iomgr
parent389c595fe3886f8c2b569be727c92f74453faf76 (diff)
Flush platform stuff after timer events
It can happen that a timer event causes something to be queued to an IOCP, which means that on Windows we need to flush that queue each time a timer event fires during shutdown.
Diffstat (limited to 'src/core/lib/iomgr')
-rw-r--r--src/core/lib/iomgr/iomgr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/iomgr.c b/src/core/lib/iomgr/iomgr.c
index 4fd83e0b22..3470b5ac81 100644
--- a/src/core/lib/iomgr/iomgr.c
+++ b/src/core/lib/iomgr/iomgr.c
@@ -108,6 +108,7 @@ void grpc_iomgr_shutdown(void) {
NULL)) {
gpr_mu_unlock(&g_mu);
grpc_exec_ctx_flush(&exec_ctx);
+ grpc_iomgr_platform_flush();
gpr_mu_lock(&g_mu);
continue;
}