Skip to content

Commit

Permalink
[DDW-652] Use finally clause in try/catch to resume polling
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomislav Horaček committed Apr 15, 2021
1 parent 56310b2 commit d53b950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/renderer/app/stores/WalletsStore.js
Expand Up @@ -635,13 +635,13 @@ export default class WalletsStore extends Store {
logger.debug('[HW-DEBUG] HWStore - Close dialog');
this.actions.dialogs.closeActiveDialog.trigger();
}
this._resumePolling();
} catch (error) {
logger.debug('[HW-DEBUG] HWStore - HW create / restore ERROR', {
error,
});
this._resumePolling();
throw error;
} finally {
this._resumePolling();
}
};

Expand Down

0 comments on commit d53b950

Please sign in to comment.