aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Application.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd/Application.cs')
-rw-r--r--src/slskd/Application.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index 461a5fef..208de9e1 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -128,7 +128,7 @@ namespace slskd
Console.CancelKeyPress += (_, args) =>
{
ShuttingDown = true;
- Program.MasterCancellationTokenSource.Cancel();
+ Program.MasterCancellationTokenSource.Cancel(swallowObjectDisposedException: true);
Log.Warning("Received SIGINT");
};
@@ -137,7 +137,7 @@ namespace slskd
PosixSignals.Add(PosixSignalRegistration.Create(signal, context =>
{
ShuttingDown = true;
- Program.MasterCancellationTokenSource.Cancel();
+ Program.MasterCancellationTokenSource.Cancel(swallowObjectDisposedException: true);
Log.Fatal("Received {Signal}", signal);
Environment.Exit(1);
}));