Ssh: Use DeviceShell in LinuxDevice

Change-Id: I165f888dbb1e7072c35ec88ce5fd8a7ae4562139
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
Marcus Tillmanns
2022-05-17 10:07:27 +02:00
parent 2f18256633
commit 2d82f2173d
3 changed files with 36 additions and 101 deletions

View File

@@ -109,7 +109,6 @@ public:
ContainerShell(const QString &containerId)
: m_containerId(containerId)
{
start();
}
private:
@@ -464,9 +463,7 @@ void DockerDevicePrivate::startContainer()
"or restart Qt Creator."));
});
if (m_shell->state() != DeviceShell::State::Succeeded) {
m_shell.reset();
DockerApi::recheckDockerDaemon();
if (!m_shell->start()) {
qCWarning(dockerDeviceLog) << "Container shell failed to start";
}
}