Reduce timeout of some long running tasks

This commit is contained in:
Fedor Indutny 2022-10-25 17:03:05 -07:00 committed by GitHub
parent 08f2a966a1
commit 3beccbfd31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 134 additions and 67 deletions

View file

@ -17,6 +17,7 @@ import { HTTPError } from './textsecure/Errors';
import createTaskWithTimeout, {
suspendTasksWithTimeout,
resumeTasksWithTimeout,
reportLongRunningTasks,
} from './textsecure/TaskWithTimeout';
import type {
MessageAttributesType,
@ -995,6 +996,10 @@ export async function startApp(): Promise<void> {
}
}, FIVE_MINUTES);
setInterval(() => {
reportLongRunningTasks();
}, FIVE_MINUTES);
let mainWindowStats = {
isMaximized: false,
isFullScreen: false,