mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-02 11:49:33 +01:00
avoid redundant IO port reconnections in Tracks runtime case
This commit is contained in:
parent
40b3c06dd7
commit
8d9e846b40
1 changed files with 8 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue