aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Application.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd/Application.cs')
-rw-r--r--src/slskd/Application.cs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index a64fdf36..863108c3 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -375,11 +375,6 @@ 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)
@@ -388,6 +383,7 @@ namespace slskd
}
else
{
+ // todo: should this be forced prior to connection if the cache can't be loaded?
_ = Shares.StartScanAsync();
}
}
@@ -994,7 +990,6 @@ namespace slskd
SharesRefreshStarted = DateTime.UtcNow;
State.SetValue(s => s with { Shares = current });
- Log.Information("Share scan started");
try
{
@@ -1005,6 +1000,8 @@ namespace slskd
{
// noop
}
+
+ Log.Information("Share scan started");
}
else if (previous.Scanning && !current.Scanning)
{