Skip to content

Commit ae15edc

Browse files
committed
frontend/utils: decrease the appSleeps timeout
This should encounter the problem of the App crashing due to blocked requests while in background.
1 parent 0b1dbd7 commit ae15edc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ let appSleeps = false;
167167
let lastAlive = Date.now();
168168
setInterval(() => {
169169
const now = Date.now();
170-
if (now - lastAlive > 15000) {
170+
if (now - lastAlive > 5000) {
171171
appSleeps = true;
172172
}
173173
lastAlive = now;

0 commit comments

Comments
 (0)