Commit ee4d9a57 authored by Simon Marlow's avatar Simon Marlow

call ShutdownIOManager() before closing handles

To avoid IO requests completing only to discover that the
completed_table_sema has been CloseHandle()'d.  This all looks a bit
wrong, though: we shouldn't really be waiting for these requests to
complete, they might take forever.
parent 7ee5c6af
......@@ -173,6 +173,7 @@ startupAsyncIO()
void
shutdownAsyncIO()
{
ShutdownIOManager();
if (completed_req_event != INVALID_HANDLE_VALUE) {
CloseHandle(completed_req_event);
completed_req_event = INVALID_HANDLE_VALUE;
......@@ -185,7 +186,6 @@ shutdownAsyncIO()
CloseHandle(completed_table_sema);
completed_table_sema = NULL;
}
ShutdownIOManager();
}
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment