From c2f1a06f62ca84d7ca4c36d3748bf76ef6b4bf79 Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 28 Jul 2014 05:06:37 +0100 Subject: [PATCH] Report to host when a bridge times-out and auto-deactivates --- source/backend/plugin/BridgePlugin.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/backend/plugin/BridgePlugin.cpp b/source/backend/plugin/BridgePlugin.cpp index 6edf70040..cc289ca17 100644 --- a/source/backend/plugin/BridgePlugin.cpp +++ b/source/backend/plugin/BridgePlugin.cpp @@ -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)