From 35d85df750a44b9e8ce31a4f547da6f740345ace Mon Sep 17 00:00:00 2001 From: DubyaDude Date: Sat, 17 Aug 2024 20:35:02 -0400 Subject: [PATCH] Fix refresh cooldown --- VRCX-API/Services/GithubPeriodicService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/VRCX-API/Services/GithubPeriodicService.cs b/VRCX-API/Services/GithubPeriodicService.cs index df77e4d..0a5ce18 100644 --- a/VRCX-API/Services/GithubPeriodicService.cs +++ b/VRCX-API/Services/GithubPeriodicService.cs @@ -25,6 +25,7 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken) if (DateTime.Now - _lastRefresh > TimeSpan.FromSeconds(120)) { await _githubCacheService.RefreshAsync(); + _lastRefresh = DateTime.Now; } } catch (Exception ex)