Fix signal not always emitted from messagreply
This commit is contained in:
parent
1b791c82fc
commit
cf4856a0c9
@ -20,6 +20,7 @@
|
||||
|
||||
#include <QtGlobal>
|
||||
#include <QObject>
|
||||
#include <QThread>
|
||||
#include <QSemaphore>
|
||||
#include <QString>
|
||||
|
||||
@ -88,6 +89,9 @@ void MessageReply<MessageType>::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_);
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user