Reconnecting unconnected ports always succeeds

PortManager::reconnect_ports emit a signal
PortConnectedOrDisconnected when Port::reconnect fails. This is
not needed in case of unconnected ports.
This commit is contained in:
Robin Gareus 2021-11-01 22:57:18 +01:00
parent aba0de91f8
commit 6b348d8183
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -596,6 +596,10 @@ Port::reconnect ()
{
/* caller must hold process lock; intended to be used only after reestablish() */
if (_connections.empty ()) {
return 0; /* OK */
}
DEBUG_TRACE (DEBUG::Ports, string_compose ("Port::reconnect() Connect %1 to %2 destinations\n",name(), _connections.size()));
int count = 0;