Unregister ports directly after RCU update
see also 2e23ec4422
. This fixes a bug where some ports
remain in used (shared_ptr<Port>) by the RCUManager, even
after the port is removed from the port_map.
This can lead to issues when the port is re-registered later.
This commit is contained in:
parent
00e35c48b6
commit
4b75ed249e
@ -445,10 +445,12 @@ IO::ensure_ports_locked (ChanCount count, bool clear, bool& changed)
|
|||||||
/* end of RCUWriter scope */
|
/* end of RCUWriter scope */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (changed) {
|
if (changed) {
|
||||||
const ChanCount n_ports = ports ()->count ();
|
const ChanCount n_ports = ports ()->count ();
|
||||||
PortCountChanged (n_ports); /* EMIT SIGNAL */
|
PortCountChanged (n_ports); /* EMIT SIGNAL */
|
||||||
_session.set_dirty ();
|
_session.set_dirty ();
|
||||||
|
_ports.flush ();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (clear) {
|
if (clear) {
|
||||||
|
Loading…
Reference in New Issue
Block a user