From 017d3818eb874e91dabeb7243241246961ee5b76 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 18 Mar 2021 19:49:06 +0100 Subject: [PATCH] always reply here --- src/platform/web/service-worker.template.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }