Ensure that waitForAll functions catch and log thrown errors
This commit is contained in:
parent
45fcf827dd
commit
9e54f55c22
6 changed files with 36 additions and 5 deletions
|
@ -648,6 +648,7 @@ export async function startApp(): Promise<void> {
|
|||
server !== undefined,
|
||||
'WebAPI should be initialized together with MessageReceiver'
|
||||
);
|
||||
log.info('background/shutdown: shutting down messageReceiver');
|
||||
server.unregisterRequestHandler(messageReceiver);
|
||||
messageReceiver.stopProcessing();
|
||||
await window.waitForAllBatchers();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue