diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-07-23 10:40:17 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-07-23 10:40:17 -0500 |
| commit | 0684e1c22edea317374289b1ca63eb0c34f0b3c9 (patch) | |
| tree | 0c03a4cced5e5163981d161866ddc3c66e5b5a2a /src | |
| parent | c54d6d8c1c6f13bc2a5c14bde0af204cd6e59d99 (diff) | |
| download | slskd-0684e1c22edea317374289b1ca63eb0c34f0b3c9.tar.gz | |
use the latest credentials when reconnecting
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Application/Service.cs | 4 |
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) |
