Browse Source

Don't wait twice for vst plugin bridges

tags/v1.9.11
falkTX 6 years ago
parent
commit
c2b328d70d
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      source/backend/plugin/CarlaPluginBridge.cpp

+ 6
- 2
source/backend/plugin/CarlaPluginBridge.cpp View File

@@ -645,8 +645,10 @@ public:
carla_msleep(20);
}

if (! fBridgeThread.isThreadRunning())
return carla_stderr("CarlaPluginBridge::waitForSaved() - Bridge is not running");
if (! fSaved)
carla_stderr("CarlaPluginBridge::waitForSaved() - Timeout while requesting save state");
return carla_stderr("CarlaPluginBridge::waitForSaved() - Timeout while requesting save state");
}

// -------------------------------------------------------------------
@@ -1757,7 +1759,9 @@ public:

void waitForBridgeSaveSignal() noexcept override
{
waitForSaved();
// VSTs only save chunks, for which we already have a waitForSaved there
if (fPluginType != PLUGIN_VST2)
waitForSaved();
}

// -------------------------------------------------------------------


Loading…
Cancel
Save