From 3d3c27134805e8413e0a4378762b9452d2cc7b98 Mon Sep 17 00:00:00 2001 From: ann0see <20726856+ann0see@users.noreply.github.com> Date: Sat, 8 Aug 2026 10:00:42 +0200 Subject: [PATCH] Avoid windows ASIO4ALL hang by using QueuedConnection Found by AI debugging: https://github.com/jamulussoftware/jamulus/issues/3779#issuecomment-5209182261 --- src/client.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/client.cpp b/src/client.cpp index e1532c96b2..6ee048a863 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -182,7 +182,15 @@ CClient::CClient ( const quint16 iPortNumber, QObject::connect ( &ConnLessProtocol, &CProtocol::CLChannelLevelListReceived, this, &CClient::OnCLChannelLevelListReceived ); // other - QObject::connect ( &Sound, &CSound::ReinitRequest, this, &CClient::OnSndCrdReinitRequest ); + QObject::connect ( &Sound, + &CSound::ReinitRequest, + this, + &CClient::OnSndCrdReinitRequest +#if defined( Q_OS_WINDOWS ) + , + Qt::QueuedConnection // On Windows, use a queued connection to avoid an ASIO4ALL hang (#3867) +#endif + ); QObject::connect ( &Sound, &CSound::ControllerInFaderLevel, this, &CClient::OnControllerInFaderLevel );