Deviceshell: Cleanup shellProcess destruction

Change-Id: I71507d9e74979fca461784575257e7bafd1b4838
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
Marcus Tillmanns
2022-09-14 09:52:09 +02:00
parent 720d07928b
commit 5ebb467cc6
5 changed files with 17 additions and 16 deletions

View File

@@ -454,7 +454,7 @@ void DockerDevicePrivate::startContainer()
return;
qCWarning(dockerDeviceLog) << "Container shell encountered error:" << resultData.m_error;
m_shell.reset();
m_shell.release()->deleteLater();
DockerApi::recheckDockerDaemon();
MessageManager::writeFlashing(tr("Docker daemon appears to be not running. "
@@ -479,7 +479,7 @@ void DockerDevicePrivate::updateContainerAccess()
if (m_shell)
return;
startContainer();
startContainer();
}
void DockerDevice::setMounts(const QStringList &mounts) const