diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-10-10 15:57:11 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-10-10 15:57:11 -0500 |
| commit | 1f1dc6dcac73308d6ee61fb75b9ed8f7383e0e73 (patch) | |
| tree | eb1c690522b0bf72863dc906f8e3c0bd63b850df /src | |
| parent | a67bf12a42eb58390a0a51bc2d70bed835404b35 (diff) | |
| download | slskd-1f1dc6dcac73308d6ee61fb75b9ed8f7383e0e73.tar.gz | |
request scan on file mismatch
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Transfers/Uploads/UploadService.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slskd/Transfers/Uploads/UploadService.cs b/src/slskd/Transfers/Uploads/UploadService.cs index e7561cbf..ce4a3474 100644 --- a/src/slskd/Transfers/Uploads/UploadService.cs +++ b/src/slskd/Transfers/Uploads/UploadService.cs @@ -124,7 +124,8 @@ namespace slskd.Transfers.Uploads if (!localFileInfo.Exists) { - throw new NotFoundException($"The resolved file '{localFilename}' could not be located on disk. A share scan should be performed."); + Shares.RequestScan(); + throw new NotFoundException($"The file '{localFilename}' could not be located on disk. A share scan should be performed."); } } catch (NotFoundException) |
