Move semaphore release
This commit is contained in:
@@ -87,11 +87,12 @@ void MessageReply<MessageType>::SetReply(const MessageType &message) {
|
|||||||
success_ = true;
|
success_ = true;
|
||||||
|
|
||||||
qLog(Debug) << "Releasing ID" << id() << "(finished)";
|
qLog(Debug) << "Releasing ID" << id() << "(finished)";
|
||||||
semaphore_.release();
|
|
||||||
|
|
||||||
// Delay the signal as workaround to fix the signal periodically not emitted.
|
// Delay the signal as workaround to fix the signal periodically not emitted.
|
||||||
QTimer::singleShot(1, this, &_MessageReplyBase::Finished);
|
QTimer::singleShot(1, this, &_MessageReplyBase::Finished);
|
||||||
|
|
||||||
|
semaphore_.release();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // MESSAGEREPLY_H
|
#endif // MESSAGEREPLY_H
|
||||||
|
|||||||
Reference in New Issue
Block a user