diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-07-23 10:41:44 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-07-23 10:41:44 -0500 |
| commit | 06a324feff453f7dcc817b7b964ac7547f658e34 (patch) | |
| tree | 3466ce3928500eecd996453d95e3ff3d86a350b6 /src | |
| parent | e0fa9554fdcd29e3f400d56234228b6728a933f1 (diff) | |
| download | slskd-06a324feff453f7dcc817b7b964ac7547f658e34.tar.gz | |
validate current un/pw options prior to reconnect attempt
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Application/Service.cs | 2 |
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; |
