diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index c93585dd27..dd07ddc0b9 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -1455,12 +1455,9 @@ Route::remove_processor (boost::shared_ptr processor, ProcessorStream return 1; } - _processors.erase (i); - /* stop redirects that send signals to JACK ports * from causing noise as a result of no longer being run */ - boost::shared_ptr iop = boost::dynamic_pointer_cast (*i); boost::shared_ptr pi = boost::dynamic_pointer_cast(*i); @@ -1480,6 +1477,8 @@ Route::remove_processor (boost::shared_ptr processor, ProcessorStream lm.acquire (); } + _processors.erase (i); + if (configure_processors_unlocked (err, &lm)) { pstate.restore (); /* we know this will work, because it worked before :) */