diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-09-24 16:21:59 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-09-24 16:21:59 -0500 |
| commit | c6a06b2d45faeab923865ca4bc2232ff5f7c8326 (patch) | |
| tree | b593012d28c2fbacda0c2e424ae649ba46fbdc4b | |
| parent | 196b88f9970887cbe69d1f0b7d23493204ce5990 (diff) | |
| download | slskd-c6a06b2d45faeab923865ca4bc2232ff5f7c8326.tar.gz | |
don't wait for scan
| -rw-r--r-- | src/slskd/Shares/API/Controllers/SharesController.cs | 4 |
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) { |
