Skip to content

Commit

Permalink
Update parameterChanged based on caller
Browse files Browse the repository at this point in the history
  • Loading branch information
medengineer committed Aug 29, 2024
1 parent 5676a9b commit a08c2b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/Processors/Parameter/ParameterEditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ class PLUGIN_API ParameterEditor : public Component,
/** Implements Parameter::Listener */
void parameterChanged (Parameter* param) override
{
MessageManager::callAsync ([this] { this->updateView(); });
if (MessageManager::getInstance()->isThisTheMessageThread())
this->updateView();
else //called from HTTPServer thread
MessageManager::callAsync ([this]
{ this->updateView(); });
}

/** Implements Parameter::Listener */
Expand Down

0 comments on commit a08c2b4

Please sign in to comment.