aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Application.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2023-10-01 17:00:01 -0500
committerJP Dillingham <jp@dillingham.me>2023-10-01 17:00:01 -0500
commit26e48163ca53b61a82c4a5fd5a40228096aae12c (patch)
treef20b89f1a4a620f67be0c1fb33eca1f7b55febc4 /src/slskd/Application.cs
parent6886d768afdf2ed36b571e7810132a1df6ebb01b (diff)
downloadslskd-26e48163ca53b61a82c4a5fd5a40228096aae12c.tar.gz
stop the clock on shutdown
Diffstat (limited to 'src/slskd/Application.cs')
-rw-r--r--src/slskd/Application.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index dabf112e..0ebffe94 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -446,6 +446,9 @@ namespace slskd
{
ShuttingDown = true;
Log.Warning("Application is shutting down");
+
+ Clock.Stop();
+
Client.Disconnect("Shutting down", new ApplicationShutdownException("Shutting down"));
Client.Dispose();
Log.Information("Client stopped");