Don't poll websocket on remote expiration

This commit is contained in:
Fedor Indutny 2024-02-14 10:37:47 -08:00 committed by GitHub
parent fe27910221
commit cd3d3dc8a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 28 additions and 1 deletions

View file

@ -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');
}
}