diff --git a/sql/threadpool_win.cc b/sql/threadpool_win.cc index 10d6e96b22f..1e2084b9c07 100644 --- a/sql/threadpool_win.cc +++ b/sql/threadpool_win.cc @@ -308,6 +308,7 @@ TP_connection_win::~TP_connection_win() if (timer) { + SetThreadpoolTimer(timer, 0, 0, 0); WaitForThreadpoolTimerCallbacks(timer, TRUE); CloseThreadpoolTimer(timer); }