diff options
-rw-r--r-- | src/qml/debugger/qqmldebugserver.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/debugger/qqmldebugserver.cpp b/src/qml/debugger/qqmldebugserver.cpp index 0523762971..c21911a43f 100644 --- a/src/qml/debugger/qqmldebugserver.cpp +++ b/src/qml/debugger/qqmldebugserver.cpp @@ -547,8 +547,8 @@ bool QQmlDebugServer::addService(QQmlDebugService *service) { Q_D(QQmlDebugServer); - // to be executed in GUI thread - Q_ASSERT(QThread::currentThread() == QCoreApplication::instance()->thread()); + // to be executed outside of debugger thread + Q_ASSERT(QThread::currentThread() != thread()); { QWriteLocker lock(&d->pluginsLock); @@ -571,8 +571,8 @@ bool QQmlDebugServer::removeService(QQmlDebugService *service) { Q_D(QQmlDebugServer); - // to be executed in GUI thread - Q_ASSERT(QThread::currentThread() == QCoreApplication::instance()->thread()); + // to be executed outside of debugger thread + Q_ASSERT(QThread::currentThread() != thread()); { QWriteLocker lock(&d->pluginsLock); |