13
0

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:
Robin Gareus 2024-07-27 22:25:09 +02:00
parent 00e35c48b6
commit 4b75ed249e
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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) {