Don't poll websocket on remote expiration
This commit is contained in:
parent
fe27910221
commit
cd3d3dc8a6
2 changed files with 28 additions and 1 deletions
|
@ -8,6 +8,7 @@ export async function handleStatusCode(status: number): Promise<void> {
|
|||
if (status === 499) {
|
||||
log.error('Got 499 from Signal Server. Build is expired.');
|
||||
await window.storage.put('remoteBuildExpiration', Date.now());
|
||||
window.Whisper.events.trigger('httpResponse499');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue