mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2024-12-14 09:44:51 +01:00
Use Q_ASSERT
This commit is contained in:
parent
c5cadfe0c6
commit
f69e42e520
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user