diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-05-28 19:06:30 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2024-05-28 19:06:30 -0500 |
| commit | 3901f5df412d53f273a4939b69838468d5f1989b (patch) | |
| tree | c75dac6ff1506f1da580633740c4fa7e95f8137e /src | |
| parent | 400cf795c01184ed28471a0b0e91bda07be8411c (diff) | |
| download | slskd-3901f5df412d53f273a4939b69838468d5f1989b.tar.gz | |
use ConnectionWatchdog to make initial connection
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Application.cs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index 0ad8c800..f92b4647 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -446,13 +446,7 @@ namespace slskd } else { - var opt = OptionsAtStartup.Soulseek; - - await Client.ConnectAsync( - address: opt.Address, - port: opt.Port, - username: opt.Username, - password: opt.Password).ConfigureAwait(false); + ConnectionWatchdog.Start(); } } } @@ -825,7 +819,7 @@ namespace slskd else { Log.Error("Disconnected from the Soulseek server: {Message}", args.Exception?.Message ?? args.Message); - ConnectionWatchdog.Start(); + ConnectionWatchdog.Restart(); } } |
