diff --git a/src/qt/qt_main.cpp b/src/qt/qt_main.cpp index 3cce79690..063e1e6c8 100644 --- a/src/qt/qt_main.cpp +++ b/src/qt/qt_main.cpp @@ -149,7 +149,12 @@ main_thread_fn() if (dopause) ack_pause(); +#ifdef USE_THREAD_SLEEP std::this_thread::sleep_for(std::chrono::milliseconds(1)); +#else + timeBeginPeriod(1); + plat_delay_ms(1); +#endif } }