aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-09-24 16:21:59 -0500
committerJP Dillingham <jpdillingham@gmail.com>2022-09-24 16:21:59 -0500
commitc6a06b2d45faeab923865ca4bc2232ff5f7c8326 (patch)
treeb593012d28c2fbacda0c2e424ae649ba46fbdc4b /src
parent196b88f9970887cbe69d1f0b7d23493204ce5990 (diff)
downloadslskd-c6a06b2d45faeab923865ca4bc2232ff5f7c8326.tar.gz
don't wait for scan
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Shares/API/Controllers/SharesController.cs4
1 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 a8d5ae96..44d79a18 100644
--- a/src/slskd/Shares/API/Controllers/SharesController.cs
+++ b/src/slskd/Shares/API/Controllers/SharesController.cs
@@ -176,11 +176,11 @@ namespace slskd.Shares.API
[Authorize]
[ProducesResponseType(204)]
[ProducesResponseType(409)]
- public async Task<IActionResult> RescanSharesAsync()
+ public IActionResult RescanSharesAsync()
{
try
{
- await Shares.StartScanAsync();
+ _ = Shares.ScanAsync();
}
catch (ShareScanInProgressException)
{