Debugger: Move server into it's own thread
[profile/ivi/qtdeclarative.git] / src / declarative / debugger / qdeclarativeinspectorservice.cpp
index c3f90d2..90ab6ad 100644 (file)
@@ -133,6 +133,11 @@ void QDeclarativeInspectorService::updateStatus()
 
 void QDeclarativeInspectorService::messageReceived(const QByteArray &message)
 {
+    QMetaObject::invokeMethod(this, "processMessage", Qt::QueuedConnection, Q_ARG(QByteArray, message));
+}
+
+void QDeclarativeInspectorService::processMessage(const QByteArray &message)
+{
     if (m_currentInspectorPlugin)
         m_currentInspectorPlugin->clientMessage(message);
 }