mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -445,10 +445,12 @@ IO::ensure_ports_locked (ChanCount count, bool clear, bool& changed)
|
|||
/* end of RCUWriter scope */
|
||||
}
|
||||
|
||||
|
||||
if (changed) {
|
||||
const ChanCount n_ports = ports ()->count ();
|
||||
PortCountChanged (n_ports); /* EMIT SIGNAL */
|
||||
_session.set_dirty ();
|
||||
_ports.flush ();
|
||||
}
|
||||
|
||||
if (clear) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue