Skip to content

Commit

Permalink
[wip] check reconnect after token expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
therockerline committed Dec 18, 2024
1 parent 7a4ad1f commit d062fd1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,12 @@ function attachPowerMonitor() {
if (store.store.account && NethLinkController.instance) {
const isOpen = NethLinkController.instance.window.isOpen()
showNethlink = isOpen ?? true
await PhoneIslandController.instance.logout()
NethLinkController.instance.logout()
try {
await PhoneIslandController.instance.logout()
NethLinkController.instance.logout()
} catch (e) {
Log.error('POWER RESUME ERROR on logout', e)
}
const autoLoginResult = await AccountController.instance.autoLogin()
if (autoLoginResult) {
ipcMain.emit(IPC_EVENTS.LOGIN, undefined, { showNethlink })
Expand Down

0 comments on commit d062fd1

Please sign in to comment.