aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2023-01-08 14:32:26 -0600
committerJP Dillingham <jp@dillingham.me>2023-01-08 14:32:26 -0600
commitdc90af169b47d0e869ba08064f3f8f0f70fd9a0d (patch)
tree062d1b2b75da3a9f96d508ebca2b23b40fee3471
parent25c21ef7f87bfdeac155171371848fe686dc9462 (diff)
downloadslskd-dc90af169b47d0e869ba08064f3f8f0f70fd9a0d.tar.gz
only log on reconnect
-rw-r--r--src/slskd/Relay/RelayClient.cs6
1 files changed, 4 insertions, 2 deletions
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));