summaryrefslogtreecommitdiff
path: root/libs/ardour/audioengine.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/audioengine.cc')
-rw-r--r--libs/ardour/audioengine.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc
index 4ba6f6cf0a..6b0c70b44c 100644
--- a/libs/ardour/audioengine.cc
+++ b/libs/ardour/audioengine.cc
@@ -985,9 +985,7 @@ AudioEngine::stop (bool for_latency)
_running = false;
}
- if (_session && was_running_will_stop &&
- (_session->state_of_the_state() & Session::Loading) == 0 &&
- (_session->state_of_the_state() & Session::Deletion) == 0) {
+ if (_session && was_running_will_stop && !_session->loading() && !_session->deletion_in_progress()) {
// it's not a halt, but should be handled the same way:
// disable record, stop transport and I/O processign but save the data.
_session->engine_halted ();