Debugger: Fix race condition in block mode, QQmlDebugServer
authorKai Koehne <kai.koehne@nokia.com>
Tue, 24 Apr 2012 11:31:17 +0000 (13:31 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 25 Apr 2012 09:46:05 +0000 (11:46 +0200)
commita5d4efbc0035a0a3356e6d69a7b7b1c2d17ff253
treee03c622ec2d78d4b8dbc2cc44d890282d6d5044d
parentb8bb9d7561b6be0557cde93ba3c5390a50f14087
Debugger: Fix race condition in block mode, QQmlDebugServer

Make sure that the first message hasn't already arrived before
we call d->messageArrivedCondition.wait().

Change-Id: I0d3df9adbd41f71df5c1c7d6df90c0037f494514
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
src/qml/debugger/qqmldebugserver.cpp