From 1e26c366f8e1649049e1b9e7686c11ef8ffe2022 Mon Sep 17 00:00:00 2001 From: MathieuG-P Date: Fri, 30 Dec 2022 23:36:02 +0100 Subject: [PATCH] too much warnings when connection is unstable --- src/renderer/services/bs-downloader.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/services/bs-downloader.service.ts b/src/renderer/services/bs-downloader.service.ts index 48b2835b..c7da6b2a 100644 --- a/src/renderer/services/bs-downloader.service.ts +++ b/src/renderer/services/bs-downloader.service.ts @@ -52,7 +52,7 @@ export class BsDownloaderService{ this.ipcService.watch("bs-download.[SteamID]").pipe(filter(r => r.success && !!r.data)).subscribe(response => this.authService.setSteamID(response.data)); - this.ipcService.watch("bs-download.[Warning]").pipe(filter(v => !!v && !!v.data), distinctUntilChanged(), throttleTime(1000)).subscribe(warning => { + this.ipcService.watch("bs-download.[Warning]").pipe(filter(v => !!v && !!v.data), distinctUntilChanged(), throttleTime(10_000)).subscribe(warning => { this.notificationService.notifyWarning({title: "notifications.types.warning", desc: `notifications.bs-download.warnings.msg.${warning.data}`}); });