diff --git a/src/platform/web/service-worker.template.js b/src/platform/web/service-worker.template.js index 396783e4..ebb31cdb 100644 --- a/src/platform/web/service-worker.template.js +++ b/src/platform/web/service-worker.template.js @@ -173,12 +173,12 @@ self.addEventListener('message', (event) => { self.skipWaiting(); break; case "haltRequests": - event.waitUntil(haltRequests().then(() => reply())); + event.waitUntil(haltRequests().finally(() => reply())); break; case "closeSession": event.waitUntil( closeSession(event.data.payload.sessionId, event.source.id) - .then(() => reply()) + .finally(() => reply()) ); break; }