Move semaphore release

This commit is contained in:
Jonas Kvinge 2021-02-16 18:53:51 +01:00
parent b1e1c704b1
commit eb603e942f
1 changed files with 2 additions and 1 deletions

View File

@ -87,11 +87,12 @@ void MessageReply<MessageType>::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