aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-07-23 10:40:17 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-07-23 10:40:17 -0500
commit0684e1c22edea317374289b1ca63eb0c34f0b3c9 (patch)
tree0c03a4cced5e5163981d161866ddc3c66e5b5a2a /src
parentc54d6d8c1c6f13bc2a5c14bde0af204cd6e59d99 (diff)
downloadslskd-0684e1c22edea317374289b1ca63eb0c34f0b3c9.tar.gz
use the latest credentials when reconnecting
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application/Service.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/slskd/Application/Service.cs b/src/slskd/Application/Service.cs
index e2f63750..7c3b9756 100644
--- a/src/slskd/Application/Service.cs
+++ b/src/slskd/Application/Service.cs
@@ -408,7 +408,9 @@ namespace slskd
try
{
- await Client.ConnectAsync(Options.Soulseek.Username, Options.Soulseek.Password);
+ // reconnect with the latest configuration values we have for username and password, instead of the options that were
+ // captured at startup. if a user has updated these values prior to the disconnect, the changes will take effect now.
+ await Client.ConnectAsync(OptionsMonitor.CurrentValue.Soulseek.Username, OptionsMonitor.CurrentValue.Soulseek.Password);
break;
}
catch (Exception ex)