diff options
Diffstat (limited to 'gui/src/main')
| -rw-r--r-- | gui/src/main/index.ts | 7 |
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) => { |
