From 347eb4ed454c0d30996fbd6c46647e9282976844 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 21 Nov 2022 18:47:00 -0600 Subject: don't rebuild cache when scan finishes; wait for ready flag --- src/slskd/Application.cs | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index aeb18201..71fb140d 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -1052,7 +1052,6 @@ namespace slskd // ...but if it completed successfully, immediately update again to lower the pending flag State.SetValue(state => state with { Shares = state.Shares with { ScanPending = false } }); Log.Information("Shares scanned successfully. Found {Directories} directories and {Files} files in {Duration}ms", current.Directories, current.Files, (DateTime.UtcNow - SharesRefreshStarted).TotalMilliseconds); - rebuildBrowseCache = true; SharesRefreshStarted = default; -- cgit v1.2.3