Skip to content

Commit

Permalink
Bugfix dangling response handling from destroyed windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Avaer Kazmer committed Jul 30, 2019
1 parent b4ec03b commit 654fa7c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Window.js
Original file line number Diff line number Diff line change
Expand Up @@ -1344,11 +1344,10 @@ global.onrunasync = req => {
error: req.error,
result: req.result,
});

return Promise.resolve();
} else {
return Promise.reject(new Error(`response for unknown window ${method} ${JSON.stringify(windows.map(window => window.id))}`));
console.warn('ignoring unknown response', req, {windowId});
}
return Promise.resolve();
}
}
case 'keyEvent': {
Expand Down

0 comments on commit 654fa7c

Please sign in to comment.