about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-03-05 11:21:19 +0100
committerRory& <root@rory.gay>2024-03-05 11:21:19 +0100
commit491b0523edcb3dea880372847a683458102c3f42 (patch)
tree35a047adc2961937643b2b5389986045cfd79152
parentAdd eons of work because I forgot to push (diff)
downloadMatrixUtils-491b0523edcb3dea880372847a683458102c3f42.tar.xz
Fix homepage progress bar
m---------LibMatrix0
-rw-r--r--MatrixUtils.Web/Pages/Index.razor4
m---------MxApiExtensions0
3 files changed, 3 insertions, 1 deletions
diff --git a/LibMatrix b/LibMatrix
-Subproject c7b7dbe3d929d787fe0c76015082a117c422227
+Subproject f41b6e5ec431c88bc1d94e4832d8ba49ddc4200
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();
     }
diff --git a/MxApiExtensions b/MxApiExtensions
-Subproject 3c0c7b2e56a24bda06b8c567e5608546898c99d
+Subproject 2d21596eec41cf1669f8064278b3273dc4f4c36