13
0

move termination of auto connect thread till after control protocols are destroyed.

Otherwise, control protocol ports don't actually get deleted
This commit is contained in:
Paul Davis 2016-12-18 00:06:44 +00:00
parent f80fb029e2
commit 1223c8d1cd

View File

@ -607,9 +607,6 @@ Session::destroy ()
_state_of_the_state = StateOfTheState (CannotSave|Deletion);
/* stop autoconnecting */
auto_connect_thread_terminate ();
/* disconnect from any and all signals that we are connected to */
Port::PortSignalDrop (); /* EMIT SIGNAL */
@ -621,6 +618,9 @@ Session::destroy ()
ControlProtocolManager::instance().drop_protocols ();
/* stop autoconnecting */
auto_connect_thread_terminate ();
MIDI::Name::MidiPatchManager::instance().remove_search_path(session_directory().midi_patch_path());
_engine.remove_session ();