Browse Source

Improve error message when UI bridge receives non-uri before options

tags/1.9.7
falkTX 7 years ago
parent
commit
bbb8d525b6
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      source/bridges-ui/CarlaBridgeUI.cpp

+ 4
- 2
source/bridges-ui/CarlaBridgeUI.cpp View File

@@ -112,8 +112,10 @@ bool CarlaBridgeUI::msgReceived(const char* const msg) noexcept
{
carla_debug("CarlaBridgeUI::msgReceived(\"%s\")", msg);

if (! fGotOptions) {
CARLA_SAFE_ASSERT_RETURN(std::strcmp(msg, "urid") == 0 || std::strcmp(msg, "uiOptions") == 0, true);
if (! fGotOptions && std::strcmp(msg, "urid") != 0 && std::strcmp(msg, "uiOptions") != 0)
{
carla_stderr2("CarlaBridgeUI::msgReceived(\"%s\") - invalid message while waiting for options", msg);
return true;
}

if (fLastMsgTimer > 0)


Loading…
Cancel
Save