summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2022-05-30 14:44:32 +0200
committerDavid Lönnhager <david.l@mullvad.net>2022-05-30 14:44:32 +0200
commit07e672f7585e7f89ae1e833405c76ea16b82787f (patch)
tree27727a8425cec0bc247b123fddb1459549540cb6 /gui/src
parent8f6ea89db04b60b53fd1c25bf64dc6adf0760379 (diff)
parent3d9a617c2648041d026f571d111be2b788f156c6 (diff)
downloadmullvadvpn-07e672f7585e7f89ae1e833405c76ea16b82787f.tar.xz
mullvadvpn-07e672f7585e7f89ae1e833405c76ea16b82787f.zip
Merge branch 'fix-logout-timeout'
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) => {