RemoteLinux: Do not try to fetch environment of a disconnected device

Change-Id: Ibe1ca43fa3d9d0ade2fa3db1808c1a5fd2cb7232
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Christian Kandeler
2024-06-10 15:03:12 +02:00
parent 6e4fbed511
commit 37f5501a1f

View File

@@ -366,6 +366,9 @@ Environment LinuxDevicePrivate::getEnvironment()
if (m_environmentCache.has_value())
return m_environmentCache.value();
if (m_disconnected)
return {};
Process getEnvProc;
getEnvProc.setCommand(CommandLine{q->filePath("env")});
using namespace std::chrono;