From ced834b9c6e9492f26b5cc80795951e2cd374adc Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 13 May 2009 20:49:12 +0000 Subject: Clean up Jack shutdown semantics. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2003 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/Engine.cpp | 2 +- src/engine/JackAudioDriver.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/engine/Engine.cpp b/src/engine/Engine.cpp index ba514382..3ebe383c 100644 --- a/src/engine/Engine.cpp +++ b/src/engine/Engine.cpp @@ -52,7 +52,7 @@ using namespace Shared; Engine::Engine(Ingen::Shared::World* world) - : _world(world) + : _world(world) , _midi_driver(NULL) , _osc_driver(NULL) , _maid(new Raul::Maid(maid_queue_size)) diff --git a/src/engine/JackAudioDriver.cpp b/src/engine/JackAudioDriver.cpp index 7a059139..68646434 100644 --- a/src/engine/JackAudioDriver.cpp +++ b/src/engine/JackAudioDriver.cpp @@ -396,8 +396,10 @@ void JackAudioDriver::_shutdown_cb() { cout << "[JackAudioDriver] Jack shutdown. Exiting." << endl; - _engine.quit(); + _is_activated = false; + delete _jack_thread; _jack_thread = NULL; + _client = NULL; } -- cgit v1.2.1