diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-11-14 17:33:29 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-14 17:33:29 -0600 |
| commit | 1f4754f40005af6e1110bd00c7a7705a7203287a (patch) | |
| tree | 75a0a97c55d513ae5fb3cca281f6acc406c0bdd4 /src/slskd/Core/API/Controllers/ApplicationController.cs | |
| parent | 2622c9b698fa27ebfcc7239b75334cac96b7e88a (diff) | |
| parent | 3cf8cc9eafe3214431ea914772be7766d0db324a (diff) | |
| download | slskd-1f4754f40005af6e1110bd00c7a7705a7203287a.tar.gz | |
Merge pull request #1921 from slskd/object-disposed
Fix a bug causing an error when a download fails to enqueue after 180 seconds
Diffstat (limited to 'src/slskd/Core/API/Controllers/ApplicationController.cs')
| -rw-r--r-- | src/slskd/Core/API/Controllers/ApplicationController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Core/API/Controllers/ApplicationController.cs b/src/slskd/Core/API/Controllers/ApplicationController.cs index e015e612..09d9eda2 100644 --- a/src/slskd/Core/API/Controllers/ApplicationController.cs +++ b/src/slskd/Core/API/Controllers/ApplicationController.cs @@ -94,7 +94,7 @@ namespace slskd.Core.API [Authorize(Policy = AuthPolicy.JwtOnly, Roles = AuthRole.AdministratorOnly)] public IActionResult Shutdown() { - Program.MasterCancellationTokenSource.Cancel(); + Program.MasterCancellationTokenSource.Cancel(swallowObjectDisposedException: true); Lifetime.StopApplication(); Task.Run(async () => @@ -114,7 +114,7 @@ namespace slskd.Core.API [Authorize(Policy = AuthPolicy.JwtOnly, Roles = AuthRole.AdministratorOnly)] public IActionResult Restart() { - Program.MasterCancellationTokenSource.Cancel(); + Program.MasterCancellationTokenSource.Cancel(swallowObjectDisposedException: true); Process.Start(Process.GetCurrentProcess().MainModule.FileName, Environment.CommandLine); Lifetime.StopApplication(); |
