|
@@ -747,9 +747,14 @@ ScopedActionLock::ScopedActionLock(CarlaEngine* const engine, |
|
|
for (int i = 10; --i >= 0;) |
|
|
for (int i = 10; --i >= 0;) |
|
|
{ |
|
|
{ |
|
|
if (pData->nextAction.sem != nullptr) |
|
|
if (pData->nextAction.sem != nullptr) |
|
|
carla_sem_timedwait(*pData->nextAction.sem, 200); |
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
if (carla_sem_timedwait(*pData->nextAction.sem, 200)) |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
else |
|
|
else |
|
|
|
|
|
{ |
|
|
carla_msleep(200); |
|
|
carla_msleep(200); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (! engine->isRunning()) |
|
|
if (! engine->isRunning()) |
|
|
{ |
|
|
{ |
|
|