diff options
| author | JP Dillingham <jp@dillingham.me> | 2023-01-08 16:21:05 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2023-01-08 16:21:05 -0600 |
| commit | 05e5e91c221f55a1cf967c106ef9cfc00e646932 (patch) | |
| tree | d0281f250335b64d64da98fd930c9fd39167a6ca | |
| parent | fba17ebb02ae0fafe028c4cf88bb988d437bf44a (diff) | |
| download | slskd-05e5e91c221f55a1cf967c106ef9cfc00e646932.tar.gz | |
fix null ref
| -rw-r--r-- | src/slskd/Relay/RelayClient.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/slskd/Relay/RelayClient.cs b/src/slskd/Relay/RelayClient.cs index 92d09a17..caef2c6f 100644 --- a/src/slskd/Relay/RelayClient.cs +++ b/src/slskd/Relay/RelayClient.cs @@ -184,7 +184,6 @@ namespace slskd.Relay isRetryable: (attempts, ex) => true, onFailure: (attempts, ex) => { - Console.WriteLine(ex); Log.Debug(ex, "Relay hub connection failure"); Log.Warning("Failed attempt #{Attempts} to connect to relay controller: {Message}", attempts, ex.Message); }, @@ -571,7 +570,7 @@ namespace slskd.Relay // in case someone was waiting on this, cancel it // _very important_ to avoid deadlocks - old.TrySetCanceled(); + old?.TrySetCanceled(); } private RelayClientState TranslateState(HubConnectionState hub) => hub switch |
