Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

Commit

Permalink
RUN-3177 fixed errors on closing because of event timing. (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdepena authored and HarsimranSingh committed Aug 2, 2017
1 parent 718e8c6 commit 1f943ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/browser/api/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -1554,6 +1554,9 @@ Window.onUnload = (identity) => {
function emitCloseEvents(identity) {
const { uuid, name } = identity;

ofEvents.emit(route.window('unload', uuid, name, false), identity);
ofEvents.emit(route.window('openfin-diagnostic/unload', uuid, name, true), identity);

electronApp.emit('browser-window-closed', null, getElectronBrowserWindow(identity));

ofEvents.emit(route.window('closed'), {
Expand Down Expand Up @@ -1584,8 +1587,6 @@ function emitCloseEvents(identity) {
name
});

ofEvents.emit(route.window('unload', uuid, name, false), identity);
ofEvents.emit(route.window('openfin-diagnostic/unload', uuid, name, true), identity);
ofEvents.emit(route.window('init-subscription-listeners'), identity);
}

Expand Down

0 comments on commit 1f943ef

Please sign in to comment.