summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2022-05-27 10:42:18 +0200
committerDavid Lönnhager <david.l@mullvad.net>2022-05-30 14:43:00 +0200
commit970efd86d571d912b3716d544d483857cc49d4f6 (patch)
tree8a16d1c350d3e4f7b22597006574d8a1ab600928 /gui/src
parent8f6ea89db04b60b53fd1c25bf64dc6adf0760379 (diff)
downloadmullvadvpn-970efd86d571d912b3716d544d483857cc49d4f6.tar.xz
mullvadvpn-970efd86d571d912b3716d544d483857cc49d4f6.zip
Fix GUI getting stuck on logout if the device state cannot be updated
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/main/index.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index fc34ab2033..dce30ff2b0 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -1385,7 +1385,12 @@ class ApplicationMain {
IpcMainEventChannel.account.handleUpdateData(() => this.updateAccountData());
IpcMainEventChannel.account.handleGetDeviceState(async () => {
- await this.daemonRpc.updateDevice();
+ try {
+ await this.daemonRpc.updateDevice();
+ } catch (e) {
+ const error = e as Error;
+ log.warn(`Failed to update device info: ${error.message}`);
+ }
return this.daemonRpc.getDevice();
});
IpcMainEventChannel.account.handleListDevices((accountToken: AccountToken) => {