forked from qt-creator/qt-creator
Replace QtcProcess::stopProcess() by stop() plus waitForFinished
... or nothing, if the process object is destroyed immediately. Change-Id: I6a1e1928bc49fc20a1c0e0ee9b8f4f723276bbca Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -105,15 +105,13 @@ StdIOClientInterface::StdIOClientInterface()
|
||||
|
||||
StdIOClientInterface::~StdIOClientInterface()
|
||||
{
|
||||
if (m_process)
|
||||
m_process->stopProcess();
|
||||
delete m_process;
|
||||
}
|
||||
|
||||
void StdIOClientInterface::startImpl()
|
||||
{
|
||||
if (m_process) {
|
||||
QTC_ASSERT(!m_process->isRunning(), m_process->stopProcess() );
|
||||
QTC_CHECK(!m_process->isRunning());
|
||||
delete m_process;
|
||||
}
|
||||
m_process = new Utils::QtcProcess;
|
||||
|
||||
Reference in New Issue
Block a user