aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Shares
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2023-01-07 19:54:38 -0600
committerGitHub <noreply@github.com>2023-01-07 19:54:38 -0600
commitacde02e5acf72e0649ef0f1fc47d377868a3c90e (patch)
tree7c12350fc0f7ecdc11da8e7c86b18a126d15776e /src/slskd/Shares
parentd74137862bdbfab63a6c1ad61b8a22f650d99332 (diff)
parent8e6e0e17edf8f958b4b5bf072491d8198d9ef64c (diff)
downloadslskd-acde02e5acf72e0649ef0f1fc47d377868a3c90e.tar.gz
Merge pull request #829 from slskd/nags
Fix a bunch of linter warnings, include share upload in agent connection retry loop
Diffstat (limited to 'src/slskd/Shares')
-rw-r--r--src/slskd/Shares/API/Controllers/SharesController.cs2
-rw-r--r--src/slskd/Shares/SqliteShareRepository.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Shares/API/Controllers/SharesController.cs b/src/slskd/Shares/API/Controllers/SharesController.cs
index e4f82848..2144a979 100644
--- a/src/slskd/Shares/API/Controllers/SharesController.cs
+++ b/src/slskd/Shares/API/Controllers/SharesController.cs
@@ -74,7 +74,7 @@ namespace slskd.Shares.API
[Authorize(Policy = AuthPolicy.Any)]
[ProducesResponseType(typeof(Share), 200)]
[ProducesResponseType(404)]
- public async Task<IActionResult> Get(string id)
+ public IActionResult Get(string id)
{
var share = Shares.Hosts.SelectMany(host => host.Shares).FirstOrDefault(share => share.Id == id);
diff --git a/src/slskd/Shares/SqliteShareRepository.cs b/src/slskd/Shares/SqliteShareRepository.cs
index a4c4dd4c..f10b55e5 100644
--- a/src/slskd/Shares/SqliteShareRepository.cs
+++ b/src/slskd/Shares/SqliteShareRepository.cs
@@ -672,7 +672,7 @@ namespace slskd.Shares
var msg = "The internal share database has been corrupted or lost, and the application cannot continue to run. Please report this in a GitHub issue here: https://github.com/slskd/slskd/issues";
Log.Fatal(msg);
Environment.Exit(1);
- throw new ApplicationException(msg);
+ throw new DataMisalignedException(msg);
}
}
}