amend to 212d2ac5d (port add/remove signals)
fix deadlock when updating audio/midi connection matrix during session-close or on exit. (Note: this still can cause a crash if the route goes away while the iterator in the connection-matrix still has an index of it)
This commit is contained in:
parent
6e1781e5e3
commit
bc1a093710
@ -206,6 +206,7 @@ Bundle::remove_channel (uint32_t ch)
|
|||||||
Glib::Threads::Mutex::Lock lm (_channel_mutex);
|
Glib::Threads::Mutex::Lock lm (_channel_mutex);
|
||||||
_channel.erase (_channel.begin () + ch);
|
_channel.erase (_channel.begin () + ch);
|
||||||
|
|
||||||
|
lm.release();
|
||||||
emit_changed (ConfigurationChanged);
|
emit_changed (ConfigurationChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -217,6 +218,7 @@ Bundle::remove_channels ()
|
|||||||
|
|
||||||
_channel.clear ();
|
_channel.clear ();
|
||||||
|
|
||||||
|
lm.release();
|
||||||
emit_changed (ConfigurationChanged);
|
emit_changed (ConfigurationChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user