mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-16 15:16:44 +00:00
Other: Bridge app will be asked to close even in 'attached' mode.
This commit is contained in:
@ -204,11 +204,12 @@ void launchBridge(QStringList const &args)
|
|||||||
//****************************************************************************************************************************************************
|
//****************************************************************************************************************************************************
|
||||||
void closeBridgeApp()
|
void closeBridgeApp()
|
||||||
{
|
{
|
||||||
|
app().grpc().quit(); // this will cause the grpc service and the bridge app to close.
|
||||||
|
|
||||||
UPOverseer& overseer = app().bridgeOverseer();
|
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;
|
return;
|
||||||
|
|
||||||
app().grpc().quit(); // this will cause the grpc service and the bridge app to close.
|
|
||||||
while (!overseer->isFinished())
|
while (!overseer->isFinished())
|
||||||
{
|
{
|
||||||
QThread::msleep(20);
|
QThread::msleep(20);
|
||||||
|
|||||||
Reference in New Issue
Block a user