diff options
author | Rory& <root@rory.gay> | 2024-03-05 11:21:19 +0100 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-03-05 11:21:19 +0100 |
commit | 491b0523edcb3dea880372847a683458102c3f42 (patch) | |
tree | 35a047adc2961937643b2b5389986045cfd79152 /MatrixUtils.Web/Pages/Index.razor | |
parent | Add eons of work because I forgot to push (diff) | |
download | MatrixUtils-491b0523edcb3dea880372847a683458102c3f42.tar.xz |
Fix homepage progress bar
Diffstat (limited to 'MatrixUtils.Web/Pages/Index.razor')
-rw-r--r-- | MatrixUtils.Web/Pages/Index.razor | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MatrixUtils.Web/Pages/Index.razor b/MatrixUtils.Web/Pages/Index.razor index f216488..19c74c3 100644 --- a/MatrixUtils.Web/Pages/Index.razor +++ b/MatrixUtils.Web/Pages/Index.razor @@ -133,10 +133,10 @@ Small collection of tools to do not-so-everyday things. var updateSw = Stopwatch.StartNew(); var tasks = tokens.Select(async token => { await sema.WaitAsync(); - scannedSessions++; if ((!string.IsNullOrWhiteSpace(token.Proxy) && offlineServers.Contains(token.Proxy)) || offlineServers.Contains(token.Homeserver)) { _offlineSessions.Add(token); sema.Release(); + scannedSessions++; return; } @@ -176,9 +176,11 @@ Small collection of tools to do not-so-everyday things. offlineServers.Add(token.Homeserver); } + scannedSessions++; sema.Release(); }).ToList(); await Task.WhenAll(tasks); + scannedSessions = totalSessions; await base.OnInitializedAsync(); } |