forked from mystiq/hydrogen-web
always reply here
This commit is contained in:
parent
5d71b655ad
commit
017d3818eb
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue