Move semaphore release
This commit is contained in:
parent
b1e1c704b1
commit
eb603e942f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue