diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-05-09 14:46:40 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-06-29 14:18:11 -0400 |
commit | 18415ba6cdfafee0ee52597a0e79b40a63b3f119 (patch) | |
tree | f5ea1e39caf3cbbb77d8e5ee3b82432de824f129 /libs/ardour/port_manager.cc | |
parent | 49e292f36039b7df4e4130da72940b1d833b78b6 (diff) |
avoid redundant IO port reconnections in Tracks runtime case
Diffstat (limited to 'libs/ardour/port_manager.cc')
-rw-r--r-- | libs/ardour/port_manager.cc | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/libs/ardour/port_manager.cc b/libs/ardour/port_manager.cc index f2f2334c27..acbcb016d5 100644 --- a/libs/ardour/port_manager.cc +++ b/libs/ardour/port_manager.cc @@ -489,12 +489,14 @@ PortManager::reconnect_ports () { boost::shared_ptr<Ports> p = ports.reader (); - /* re-establish connections */ - - DEBUG_TRACE (DEBUG::Ports, string_compose ("reconnect %1 ports\n", p->size())); - - for (Ports::iterator i = p->begin(); i != p->end(); ++i) { - i->second->reconnect (); + if (!Profile->get_trx()) { + /* re-establish connections */ + + DEBUG_TRACE (DEBUG::Ports, string_compose ("reconnect %1 ports\n", p->size())); + + for (Ports::iterator i = p->begin(); i != p->end(); ++i) { + i->second->reconnect (); + } } return 0; |