aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-05-28 19:06:30 -0500
committerJP Dillingham <jp@dillingham.me>2024-05-28 19:06:30 -0500
commit3901f5df412d53f273a4939b69838468d5f1989b (patch)
treec75dac6ff1506f1da580633740c4fa7e95f8137e /src
parent400cf795c01184ed28471a0b0e91bda07be8411c (diff)
downloadslskd-3901f5df412d53f273a4939b69838468d5f1989b.tar.gz
use ConnectionWatchdog to make initial connection
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application.cs10
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();
}
}