RemoteLinux: Add missing reset of "disconnected" state

I believe this code path can be taken due to connection sharing.

Fixes: QTCREATORBUG-30828
Change-Id: I64a6142574719b85215379e304989f36b6bf46da
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Christian Kandeler
2024-06-05 18:20:07 +02:00
parent 6bfeefbb1b
commit c8d534cec6

View File

@@ -1191,8 +1191,10 @@ void LinuxDevicePrivate::checkOsType()
// Call me with shell mutex locked // Call me with shell mutex locked
bool LinuxDevicePrivate::setupShell(const SshParameters &sshParameters, bool announce) bool LinuxDevicePrivate::setupShell(const SshParameters &sshParameters, bool announce)
{ {
if (m_handler->isRunning(sshParameters)) if (m_handler->isRunning(sshParameters)) {
setDisconnected(false);
return true; return true;
}
invalidateEnvironmentCache(); invalidateEnvironmentCache();