aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Transfers/Downloads/DownloadService.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/slskd/Transfers/Downloads/DownloadService.cs b/src/slskd/Transfers/Downloads/DownloadService.cs
index ba88777c..6a149ff8 100644
--- a/src/slskd/Transfers/Downloads/DownloadService.cs
+++ b/src/slskd/Transfers/Downloads/DownloadService.cs
@@ -489,6 +489,19 @@ namespace slskd.Transfers.Downloads
throw new ArgumentException("At least one file is required", nameof(files));
}
+ IPEndPoint endpoint;
+
+ try
+ {
+ // get the user's ip and port. this will throw if they are offline.
+ endpoint = await Client.GetUserEndPointAsync(username, cancellationToken);
+ }
+ catch (Exception ex)
+ {
+ Log.Error(ex, "Failed to enqueue {Count} files from {Username}: {Message}", files.Count(), username, ex.Message);
+ throw;
+ }
+
List<string> acquiredLocks = [];
try