diff --git a/ext/libstrawberry-common/core/messagereply.h b/ext/libstrawberry-common/core/messagereply.h index 47157ce1f..a0f1336ee 100644 --- a/ext/libstrawberry-common/core/messagereply.h +++ b/ext/libstrawberry-common/core/messagereply.h @@ -20,6 +20,7 @@ #include #include +#include #include #include @@ -88,6 +89,9 @@ void MessageReply::SetReply(const MessageType &message) { qLog(Debug) << "Releasing ID" << id() << "(finished)"; semaphore_.release(); + // The signal is not always emitted without this. + QThread::usleep(10); + emit Finished(success_); }