13
0

Mackie Control: Hold the surfaces lock while resetting the master_surface

This commit is contained in:
Todd Naugle 2021-08-03 16:11:25 -05:00
parent db6f8aa215
commit 454b330950

View File

@ -873,10 +873,6 @@ MackieControlProtocol::create_surfaces ()
return -1;
}
if (is_master) {
_master_surface = surface;
}
if (configuration_state) {
XMLNode* this_device = 0;
XMLNodeList const& devices = configuration_state->children();
@ -897,6 +893,9 @@ MackieControlProtocol::create_surfaces ()
{
Glib::Threads::Mutex::Lock lm (surfaces_lock);
if (is_master) {
_master_surface = surface;
}
surfaces.push_back (surface);
}