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:
parent
aba0de91f8
commit
6b348d8183
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user