diff --git a/include/RemotePlugin.h b/include/RemotePlugin.h index 1fef44622..9b8710d17 100644 --- a/include/RemotePlugin.h +++ b/include/RemotePlugin.h @@ -36,6 +36,7 @@ #include #ifdef LMMS_BUILD_WIN32 +#include #define USE_QT_SEMAPHORES #define USE_QT_SHMEM #endif @@ -966,6 +967,11 @@ RemotePluginBase::message RemotePluginBase::waitForMessage( { QCoreApplication::processEvents( QEventLoop::ExcludeUserInputEvents, 50 ); +#ifdef LMMS_BUILD_WIN32 + Sleep( 5 ); +#else + usleep( 5 * 1000 ); +#endif continue; } #endif