From c6a06b2d45faeab923865ca4bc2232ff5f7c8326 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 24 Sep 2022 16:21:59 -0500 Subject: don't wait for scan --- src/slskd/Shares/API/Controllers/SharesController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/slskd/Shares/API/Controllers/SharesController.cs') 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 RescanSharesAsync() + public IActionResult RescanSharesAsync() { try { - await Shares.StartScanAsync(); + _ = Shares.ScanAsync(); } catch (ShareScanInProgressException) { -- cgit v1.2.3