summaryrefslogtreecommitdiff
path: root/libs/ardour/session.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2018-11-26 03:31:02 +0100
committerRobin Gareus <robin@gareus.org>2018-11-26 03:31:02 +0100
commitdce81aecc54b9ed286ec502a2e45f4da6200d056 (patch)
treedb5f950162b31fee517a9a1d90d24b10e4f3050b /libs/ardour/session.cc
parentae2a6175ccfac70ce091eda54af85de593ad4048 (diff)
Prevent deadlock when removing routes w/o engine
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r--libs/ardour/session.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc
index ae354646b9..f5920f96e4 100644
--- a/libs/ardour/session.cc
+++ b/libs/ardour/session.cc
@@ -3814,7 +3814,7 @@ Session::remove_routes (boost::shared_ptr<RouteList> routes_to_remove)
resort_routes ();
#endif
- if (_process_graph && !(_state_of_the_state & Deletion)) {
+ if (_process_graph && !(_state_of_the_state & Deletion) && _engine.running()) {
_process_graph->clear_other_chain ();
}