QV8DebugService: Cancel DebugBreak Requests before disconnect
authorAurindam Jana <aurindam.jana@nokia.com>
Fri, 4 Nov 2011 13:07:17 +0000 (14:07 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 4 Nov 2011 15:22:00 +0000 (16:22 +0100)
Change-Id: Iaf00123e0c9aa2e5542e9c8863df3887092ac953
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
src/declarative/debugger/qv8debugservice.cpp

index e36c4bd..e4d6960 100644 (file)
@@ -370,7 +370,10 @@ void QV8DebugService::messageReceived(const QByteArray &message)
                     d->handlersList.remove(bp);
                     forwardRequestToV8 = false;
                 }
+            } else if (debugCommand == QLatin1String("disconnect")) {
+                v8::Debug::CancelDebugBreak();
             }
+
             if (forwardRequestToV8)
                 d->sendDebugMessage(request);
         }