Browse Source

Report to host when a bridge times-out and auto-deactivates

tags/1.9.4
falkTX 11 years ago
parent
commit
c2f1a06f62
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      source/backend/plugin/BridgePlugin.cpp

+ 5
- 2
source/backend/plugin/BridgePlugin.cpp View File

@@ -709,6 +709,9 @@ public:
{
if (pData->osc.thread.isThreadRunning())
{
if (fTimedOut && pData->active)
setActive(false, true, true);

const CarlaMutexLocker _cml(fShmNonRtControl.mutex);

fShmNonRtControl.writeOpcode(kPluginBridgeNonRtPing);
@@ -869,7 +872,7 @@ public:
bool timedOut = true;

try {
timedOut = waitForServer();
timedOut = waitForServer(1);
} catch(...) {}

if (! timedOut)
@@ -888,7 +891,7 @@ public:
bool timedOut = true;

try {
timedOut = waitForServer();
timedOut = waitForServer(1);
} catch(...) {}

if (! timedOut)


Loading…
Cancel
Save