Browse Source

Another NSM fix

tags/1.9.4
falkTX 11 years ago
parent
commit
2cdeae0676
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      source/backend/standalone/CarlaStandalone.cpp

+ 4
- 4
source/backend/standalone/CarlaStandalone.cpp View File

@@ -2212,6 +2212,10 @@ protected:
const char* const method = &argv[0]->s; const char* const method = &argv[0]->s;
const char* const smName = &argv[2]->s; const char* const smName = &argv[2]->s;


// wait max 6 secs for host to init
for (int i=0; i < 60 && ! fIsReady; ++i)
carla_msleep(100);

if (std::strcmp(method, "/nsm/server/announce") == 0 && standalone.callback != nullptr) if (std::strcmp(method, "/nsm/server/announce") == 0 && standalone.callback != nullptr)
standalone.callback(standalone.callbackPtr, CarlaBackend::CALLBACK_NSM_ANNOUNCE, 0, 0, 0, 0.0f, smName); standalone.callback(standalone.callbackPtr, CarlaBackend::CALLBACK_NSM_ANNOUNCE, 0, 0, 0, 0.0f, smName);


@@ -2244,10 +2248,6 @@ protected:
std::strcat(data, ":"); std::strcat(data, ":");
std::strcat(data, clientId); std::strcat(data, clientId);


// wait max 6 secs for host to init
for (int i=0; i < 60 && ! fIsReady; ++i)
carla_msleep(100);

fIsOpened = false; fIsOpened = false;


standalone.callback(nullptr, CarlaBackend::CALLBACK_NSM_OPEN, 0, 0, 0, 0.0f, data); standalone.callback(nullptr, CarlaBackend::CALLBACK_NSM_OPEN, 0, 0, 0, 0.0f, data);


Loading…
Cancel
Save