aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Relay/RelayClient.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/slskd/Relay/RelayClient.cs b/src/slskd/Relay/RelayClient.cs
index 08ea5e23..37ac72bb 100644
--- a/src/slskd/Relay/RelayClient.cs
+++ b/src/slskd/Relay/RelayClient.cs
@@ -400,6 +400,11 @@ namespace slskd.Relay
private Task HandleNotifyFileDownloadCompleted(string filename, Guid token)
{
+ if (!OptionsMonitor.CurrentValue.Relay.Controller.Downloads)
+ {
+ return Task.CompletedTask;
+ }
+
Log.Information("Relay controller sent a download notification for {Filename} ({Token})", filename, token);
_ = Task.Run(async () =>