diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-10-23 15:21:26 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-10-23 15:21:26 -0500 |
| commit | 3f117404a2e12158803e90637cf0f83ae570837f (patch) | |
| tree | 67c3318e5680078e4e1f183c2d9175905b0e47ff /src | |
| parent | df289696a24efd01a070e0b92b08f2d9f293c2b3 (diff) | |
| download | slskd-3f117404a2e12158803e90637cf0f83ae570837f.tar.gz | |
stop following a login failure
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Relay/RelayClient.cs | 10 |
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..."); |
