aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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...");