Don't resort routes at every step during a session's

construction; speeds up loading of big sessions.


git-svn-id: svn://localhost/ardour2/branches/3.0@10308 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-10-26 15:14:53 +00:00
parent ebca0ae87d
commit 8326ba9066
1 changed files with 3 additions and 2 deletions

View File

@ -1327,10 +1327,11 @@ void
Session::resort_routes ()
{
/* don't do anything here with signals emitted
by Routes while we are being destroyed.
by Routes during initial setup or while we
are being destroyed.
*/
if (_state_of_the_state & Deletion) {
if (_state_of_the_state & (InitialConnecting | Deletion)) {
return;
}