Index: Source/web/WebDevToolsAgentImpl.cpp |
diff --git a/Source/web/WebDevToolsAgentImpl.cpp b/Source/web/WebDevToolsAgentImpl.cpp |
index 44305b61c853a28a67cf7da6f0fc1e535a46e0a1..4cec76949a4a72568bad3bb9631139c930084ee5 100644 |
--- a/Source/web/WebDevToolsAgentImpl.cpp |
+++ b/Source/web/WebDevToolsAgentImpl.cpp |
@@ -605,16 +605,19 @@ void WebDevToolsAgentImpl::evaluateInWebInspector(long callId, const WebString& |
void WebDevToolsAgentImpl::willProcessTask() |
{ |
+ if (!m_attached) |
+ return; |
if (InspectorController* ic = inspectorController()) |
ic->willProcessTask(); |
} |
void WebDevToolsAgentImpl::didProcessTask() |
{ |
+ if (!m_attached) |
+ return; |
if (InspectorController* ic = inspectorController()) |
ic->didProcessTask(); |
- if (m_attached) |
- flush(); |
+ flush(); |
} |
WebString WebDevToolsAgent::inspectorProtocolVersion() |