forked from qt-creator/qt-creator
Ssh: Use DeviceShell in LinuxDevice
Change-Id: I165f888dbb1e7072c35ec88ce5fd8a7ae4562139 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user