aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Nicolas Noble <nnoble@google.com>2017-10-10 09:19:02 -0700
committerGravatar Nicolas Noble <nnoble@google.com>2017-10-10 09:19:02 -0700
commit2fb9859ae2b2146c8b0682ff385fd7635608b065 (patch)
treeae87ea91672f38397f8e2cf67727258d3854736b /src/core
parentb6142ef1a6dc70565f468346c7935f43dbcb55fa (diff)
Properly flushing execution context cache under Windows.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/lib/iomgr/iocp_windows.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/iocp_windows.cc b/src/core/lib/iomgr/iocp_windows.cc
index 336cc86c75..e54584c8fd 100644
--- a/src/core/lib/iomgr/iocp_windows.cc
+++ b/src/core/lib/iomgr/iocp_windows.cc
@@ -43,7 +43,6 @@ static HANDLE g_iocp;
static DWORD deadline_to_millis_timeout(grpc_exec_ctx *exec_ctx,
grpc_millis deadline) {
- gpr_timespec timeout;
if (deadline == GRPC_MILLIS_INF_FUTURE) {
return INFINITE;
}
@@ -63,6 +62,7 @@ grpc_iocp_work_status grpc_iocp_work(grpc_exec_ctx *exec_ctx,
success =
GetQueuedCompletionStatus(g_iocp, &bytes, &completion_key, &overlapped,
deadline_to_millis_timeout(exec_ctx, deadline));
+ grpc_exec_ctx_invalidate_now(exec_ctx);
if (success == 0 && overlapped == NULL) {
return GRPC_IOCP_WORK_TIMEOUT;
}