Browse Source

Keep plugin-bridges messages alive when waiting for save

tags/1.9.6
falkTX 10 years ago
parent
commit
87de5775bf
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      source/backend/plugin/CarlaPluginBridge.cpp

+ 4
- 3
source/backend/plugin/CarlaPluginBridge.cpp View File

@@ -923,13 +923,14 @@ public:

carla_stdout("CarlaPluginBridge::prepareForSave() - sent, now waiting...");

for (int i=0; i < 200; ++i)
for (int i=0; i < 300; ++i)
{
if (fSaved)
if (fSaved || ! fBridgeThread.isThreadRunning())
break;
carla_msleep(30);
carla_msleep(20);
pData->engine->callback(ENGINE_CALLBACK_IDLE, 0, 0, 0, 0.0f, nullptr);
pData->engine->idle();
idle();
}

if (! fSaved)


Loading…
Cancel
Save