aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-10-23 15:21:26 -0500
committerJP Dillingham <jp@dillingham.me>2026-10-23 15:21:26 -0500
commit3f117404a2e12158803e90637cf0f83ae570837f (patch)
tree67c3318e5680078e4e1f183c2d9175905b0e47ff /src
parentdf289696a24efd01a070e0b92b08f2d9f293c2b3 (diff)
downloadslskd-3f117404a2e12158803e90637cf0f83ae570837f.tar.gz
stop following a login failure
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Relay/RelayClient.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/slskd/Relay/RelayClient.cs b/src/slskd/Relay/RelayClient.cs
index ebb4eb52..cbcde3c4 100644
--- a/src/slskd/Relay/RelayClient.cs
+++ b/src/slskd/Relay/RelayClient.cs
@@ -148,7 +148,15 @@ namespace slskd.Relay
// the controller will send an authentication challenge immediately after connection
// wait for the auth handler to log in before proceeding with the initial share upload
- await LoggedInTaskCompletionSource.Task;
+ try
+ {
+ await LoggedInTaskCompletionSource.Task;
+ }
+ catch (Exception)
+ {
+ await StopAsync(cancellationToken);
+ throw;
+ }
Log.Information("Uploading shares...");