From 654fa7cf19fb3f14b925562373111a3bceaf3283 Mon Sep 17 00:00:00 2001 From: Avaer Kazmer Date: Mon, 29 Jul 2019 21:35:17 -0400 Subject: [PATCH] Bugfix dangling response handling from destroyed windows --- src/Window.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Window.js b/src/Window.js index 4e4129cd35..11a3185497 100644 --- a/src/Window.js +++ b/src/Window.js @@ -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': {