aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-07-23 10:41:44 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-07-23 10:41:44 -0500
commit06a324feff453f7dcc817b7b964ac7547f658e34 (patch)
tree3466ce3928500eecd996453d95e3ff3d86a350b6 /src
parente0fa9554fdcd29e3f400d56234228b6728a933f1 (diff)
downloadslskd-06a324feff453f7dcc817b7b964ac7547f658e34.tar.gz
validate current un/pw options prior to reconnect attempt
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application/Service.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Application/Service.cs b/src/slskd/Application/Service.cs
index 61b5da12..41097730 100644
--- a/src/slskd/Application/Service.cs
+++ b/src/slskd/Application/Service.cs
@@ -386,7 +386,7 @@ namespace slskd
{
Logger.Error("Disconnected from the Soulseek server: {Message}", args.Exception?.Message ?? args.Message);
- if (string.IsNullOrEmpty(Options.Soulseek.Username) || string.IsNullOrEmpty(Options.Soulseek.Password))
+ if (string.IsNullOrEmpty(OptionsMonitor.CurrentValue.Soulseek.Username) || string.IsNullOrEmpty(OptionsMonitor.CurrentValue.Soulseek.Password))
{
Logger.Warning($"Not reconnecting to the Soulseek server; username and/or password invalid. Specify valid credentials and manually connect, or update config and restart.");
return;