From 672a5fdb45fc46c57650b0d80f5cccd4caab9134 Mon Sep 17 00:00:00 2001 From: casey langen Date: Thu, 18 Mar 2021 21:07:42 -0700 Subject: [PATCH] Fixed a bug where switching between crossfade and gapless transport could cause the app to stop responding. --- src/musikcore/audio/Crossfader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/musikcore/audio/Crossfader.cpp b/src/musikcore/audio/Crossfader.cpp index 46d707775..7c1e74d91 100644 --- a/src/musikcore/audio/Crossfader.cpp +++ b/src/musikcore/audio/Crossfader.cpp @@ -73,10 +73,10 @@ Crossfader::Crossfader(ITransport& transport) } Crossfader::~Crossfader() { - this->messageQueue.Unregister(this); this->quit = true; this->messageQueue.Post(Message::Create(this, MESSAGE_QUIT, 0, 0)); this->thread->join(); + this->messageQueue.Unregister(this); } void Crossfader::Fade(