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:
Robin Gareus 2013-07-10 13:49:51 +02:00
parent 6e1781e5e3
commit bc1a093710

View File

@ -206,6 +206,7 @@ Bundle::remove_channel (uint32_t ch)
Glib::Threads::Mutex::Lock lm (_channel_mutex);
_channel.erase (_channel.begin () + ch);
lm.release();
emit_changed (ConfigurationChanged);
}
@ -217,6 +218,7 @@ Bundle::remove_channels ()
_channel.clear ();
lm.release();
emit_changed (ConfigurationChanged);
}