CmdBridge: Make sure the wait ends when shutting down

Change-Id: Ic56d7bf14246d51c2b729ea54da5541a29fa5e23
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
hjk
2024-12-13 11:36:37 +01:00
parent fabcf85508
commit 661ceb6433

View File

@@ -245,7 +245,7 @@ Client::Client(const Utils::FilePath &remoteCmdBridgePath)
Client::~Client() Client::~Client()
{ {
if (d->thread->isRunning() && exit()) if (d->thread->isRunning() && exit())
d->thread->wait(); d->thread->wait(2000);
} }
expected_str<QFuture<Environment>> Client::start() expected_str<QFuture<Environment>> Client::start()