Commit 2870ca45 authored by Marco Bubke's avatar Marco Bubke Committed by Thomas Hartmann

QmlDesigner: Call abort instead of close for local sockets

The process could be already dead so it should not try to write to an
dead process.

Change-Id: I0c0b235b55385176c4175b63aa7c290cf3ae2947
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 7e59415f
......@@ -198,13 +198,13 @@ NodeInstanceServerProxy::~NodeInstanceServerProxy()
writeCommand(QVariant::fromValue(EndPuppetCommand()));
if (m_firstSocket)
m_firstSocket->close();
m_firstSocket->abort();
if (m_secondSocket)
m_secondSocket->close();
m_secondSocket->abort();
if (m_thirdSocket)
m_thirdSocket->close();
m_thirdSocket->abort();
if (m_qmlPuppetEditorProcess)
......@@ -318,11 +318,11 @@ void NodeInstanceServerProxy::processFinished(int /*exitCode*/, QProcess::ExitSt
writeCommand(QVariant::fromValue(EndPuppetCommand()));
if (m_firstSocket)
m_firstSocket->close();
m_firstSocket->abort();
if (m_secondSocket)
m_secondSocket->close();
m_secondSocket->abort();
if (m_thirdSocket)
m_thirdSocket->close();
m_thirdSocket->abort();
if (exitStatus == QProcess::CrashExit)
emit processCrashed();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment