From eb603e942f1c0f10f40ce4eb7a8aa5534f96b48b Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 16 Feb 2021 18:53:51 +0100 Subject: [PATCH] Move semaphore release --- ext/libstrawberry-common/core/messagereply.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/libstrawberry-common/core/messagereply.h b/ext/libstrawberry-common/core/messagereply.h index 2b0fec900..a1a8c25da 100644 --- a/ext/libstrawberry-common/core/messagereply.h +++ b/ext/libstrawberry-common/core/messagereply.h @@ -87,11 +87,12 @@ void MessageReply::SetReply(const MessageType &message) { success_ = true; qLog(Debug) << "Releasing ID" << id() << "(finished)"; - semaphore_.release(); // Delay the signal as workaround to fix the signal periodically not emitted. QTimer::singleShot(1, this, &_MessageReplyBase::Finished); + semaphore_.release(); + } #endif // MESSAGEREPLY_H