aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index cab2b649..a64fdf36 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -375,6 +375,11 @@ namespace slskd
{
Log.Warning("Unable to load share cache from disk. A share scan is required.");
+ // drop all of the existing tables and recreate them
+ Log.Information("Recreating share cache...");
+ await Shares.CreateAsync(discardExisting: true);
+ Log.Information("Share cache ready.");
+
State.SetValue(state => state with { Shares = state.Shares with { ScanPending = true } });
if (OptionsAtStartup.Flags.NoShareScan)