From 30c2b0fe8232cc748ab2bded6ab4d76febe32425 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 3 May 2026 19:17:04 +0300 Subject: fix(admin): fix rescan goroutine lifecycle and race on shared ScanProgress - Protect adminService scan state (cancel func + progress pointer) with sync.Mutex. - Allocate fresh ScanProgress per trigger and pass it to the scanner, eliminating races on the previously shared progress struct. - Cancel previous scan context before starting a new one. - Add tests for cancellation, fresh progress per scan, concurrent triggers, and empty progress when never started. - Fix race-prone tests by polling Running==true before waiting for completion. --- web/index.html | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'web/index.html') diff --git a/web/index.html b/web/index.html index 4b25b09..00300f0 100644 --- a/web/index.html +++ b/web/index.html @@ -9,6 +9,7 @@ + @@ -64,6 +65,7 @@ +
@@ -80,7 +82,10 @@
0:00
-
+ + + +
@@ -126,6 +131,8 @@
rToggle shuffle
sToggle sets sidebar
SShare selected media
+
+ Zoom in / out (image viewer)
+
Shift+SToggle slideshow (images)
LMy Shares
?Show / hide help
@@ -246,5 +253,22 @@ + + + -- cgit v1.2.3