aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/debugger
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2015-07-27 13:54:12 +0200
committerUlf Hermann <ulf.hermann@theqtcompany.com>2015-07-29 14:35:50 +0000
commit3f3de3b9b762ecc2799a3575b97a2b172fcbc79a (patch)
tree454cd956f092e5c25c210db684cb77d70daeae43 /src/qml/debugger
parentfc67a157207a340593f0c5698c168ee766dab4f6 (diff)
Don't wait for debug services if none are active
Change-Id: I30f0ea1d34c9cb8d66f9dfd1e381ecc6ae8ccc61 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/debugger')
-rw-r--r--src/qml/debugger/qqmldebugserver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/debugger/qqmldebugserver.cpp b/src/qml/debugger/qqmldebugserver.cpp
index beecc87fa4..44cd767914 100644
--- a/src/qml/debugger/qqmldebugserver.cpp
+++ b/src/qml/debugger/qqmldebugserver.cpp
@@ -899,7 +899,7 @@ bool QQmlDebugServerPrivate::EngineCondition::waitForServices(QReadWriteLock *lo
Q_ASSERT_X(numServices == 0, Q_FUNC_INFO, "Request to wait again before previous wait finished");
numServices = num;
- return condition->wait(locked);
+ return numServices > 0 ? condition->wait(locked) : true;
}
void QQmlDebugServerPrivate::EngineCondition::wake()