From dc90af169b47d0e869ba08064f3f8f0f70fd9a0d Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 8 Jan 2023 14:32:26 -0600 Subject: only log on reconnect --- src/slskd/Relay/RelayClient.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/slskd/Relay/RelayClient.cs b/src/slskd/Relay/RelayClient.cs index 4809df62..578a311e 100644 --- a/src/slskd/Relay/RelayClient.cs +++ b/src/slskd/Relay/RelayClient.cs @@ -516,10 +516,12 @@ namespace slskd.Relay return Task.CompletedTask; } - private async Task HubConnection_Reconnected(string arg) + private Task HubConnection_Reconnected(string arg) { + // upon reconnection, the authentication flow is started again. + // there's nothing that needs to be done upon reconnection, only log. Log.Warning("Relay controller connection reconnected"); - + return Task.CompletedTask; // todo: does this need to log in again? does it retain the same connection id? LoggedIn = true; State.SetValue(_ => TranslateState(HubConnection.State)); -- cgit v1.2.3