diff --git a/source/backend/engine/CarlaEngineDummy.cpp b/source/backend/engine/CarlaEngineDummy.cpp index 400c5eb44..72b1f7551 100644 --- a/source/backend/engine/CarlaEngineDummy.cpp +++ b/source/backend/engine/CarlaEngineDummy.cpp @@ -242,7 +242,9 @@ protected: while (! shouldThreadExit()) { - carla_sleep(delay); + if (delay > 0) + carla_sleep(static_cast(delay)); + oldTime = getTimeInMicroseconds(); const PendingRtEventsRunner prt(this, bufferSize, true);