diff options
author | human <human@neet.fi> | 2021-01-03 12:23:20 +0200 |
---|---|---|
committer | human <human@neet.fi> | 2021-01-03 12:52:38 +0200 |
commit | 3c8570ac52848544b33c805a764fbd00f244958e (patch) | |
tree | 635a90d7d992402219c65dd568c0c41d7ac2c494 /extension | |
parent | f875d56b0741099569a2bac82acc1d3a937dcb83 (diff) |
multi-threaded tabfs.c
Diffstat (limited to 'extension')
-rw-r--r-- | extension/background.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extension/background.js b/extension/background.js index 1b1cad0..370e106 100644 --- a/extension/background.js +++ b/extension/background.js @@ -632,7 +632,7 @@ async function onMessage(req) { // timeout is very useful because some operations just hang // (like trying to take a screenshot, until the tab is focused) didTimeout = true; console.error('timeout'); - port.postMessage({ op: req.op, error: unix.ETIMEDOUT }); + port.postMessage({ id: req.id, op: req.op, error: unix.ETIMEDOUT }); }, 1000); /* console.time(req.op + ':' + req.path);*/ @@ -654,6 +654,7 @@ async function onMessage(req) { clearTimeout(timeout); console.log('resp', response); + response.id = req.id; port.postMessage(response); } }; |