Use Q_ASSERT

This commit is contained in:
Jonas Kvinge
2021-07-11 02:27:03 +02:00
parent c5cadfe0c6
commit f69e42e520

View File

@@ -17,6 +17,7 @@
*
*/
#include <QtGlobal>
#include <QObject>
#include <QThread>
#include <QMutexLocker>
@@ -47,7 +48,7 @@ void RadioBackend::ExitAsync() {
void RadioBackend::Exit() {
assert(QThread::currentThread() == thread());
Q_ASSERT(QThread::currentThread() == thread());
moveToThread(original_thread_);
emit ExitFinished();