1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-14 09:44:51 +01:00

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 <QObject>
#include <QThread> #include <QThread>
#include <QMutexLocker> #include <QMutexLocker>
@ -47,7 +48,7 @@ void RadioBackend::ExitAsync() {
void RadioBackend::Exit() { void RadioBackend::Exit() {
assert(QThread::currentThread() == thread()); Q_ASSERT(QThread::currentThread() == thread());
moveToThread(original_thread_); moveToThread(original_thread_);
emit ExitFinished(); emit ExitFinished();