From 4443e3978532c41a1dbc67695c1bcb19b6407053 Mon Sep 17 00:00:00 2001 From: Xavier Michelon Date: Tue, 23 Aug 2022 13:01:53 +0200 Subject: [PATCH] Other: Bridge app will be asked to close even in 'attached' mode. --- internal/frontend/bridge-gui/bridge-gui/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/frontend/bridge-gui/bridge-gui/main.cpp b/internal/frontend/bridge-gui/bridge-gui/main.cpp index 6d898c30..3759f7b6 100644 --- a/internal/frontend/bridge-gui/bridge-gui/main.cpp +++ b/internal/frontend/bridge-gui/bridge-gui/main.cpp @@ -204,11 +204,12 @@ void launchBridge(QStringList const &args) //**************************************************************************************************************************************************** void closeBridgeApp() { + app().grpc().quit(); // this will cause the grpc service and the bridge app to close. + UPOverseer& overseer = app().bridgeOverseer(); - if (!overseer) // The app was run in 'attach' mode and attached to an existing instance of Bridge. No need to close. + if (!overseer) // The app was run in 'attach' mode and attached to an existing instance of Bridge. We're not monitoring it. return; - app().grpc().quit(); // this will cause the grpc service and the bridge app to close. while (!overseer->isFinished()) { QThread::msleep(20);