diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-10-18 16:17:00 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-10-18 16:17:00 -0500 |
| commit | 46eea44db6c9e3a142f808b4aae86a31fbc51b4b (patch) | |
| tree | 82236f5d6adbade22ae8ee9aad2b2fd26b5d9135 /src | |
| parent | 5c33e02fe93f44dd671a5f3abd4a00ea1f7f8113 (diff) | |
| download | slskd-46eea44db6c9e3a142f808b4aae86a31fbc51b4b.tar.gz | |
set Mutex options to regain pre 10.0.13 behavior
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Program.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index 75e9e9da..e236886b 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -382,7 +382,11 @@ namespace slskd // only one long-running instance. try { - Mutex = new Mutex(initiallyOwned: true, Compute.Sha256Hash(AppName), out bool created); + Mutex = new Mutex( + initiallyOwned: true, + name: Compute.Sha256Hash(AppName), + options: new NamedWaitHandleOptions { CurrentUserOnly = false, CurrentSessionOnly = true }, + out bool created); if (!created) { |
