Browse Source

Fix for previous commit, dont keep waiting if receiving lock

tags/v1.9.9
falkTX 6 years ago
parent
commit
16763bc4d8
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      source/backend/engine/CarlaEngineInternal.cpp

+ 6
- 1
source/backend/engine/CarlaEngineInternal.cpp View File

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

if (! engine->isRunning())
{


Loading…
Cancel
Save