From 77aa6aa386eb169424c5e1ad4d5350ccc034281f Mon Sep 17 00:00:00 2001 From: MaxXor Date: Mon, 1 Jun 2020 22:24:08 +0200 Subject: [PATCH] Use local mutex https://docs.microsoft.com/en-us/dotnet/api/system.threading.mutex?redirectedfrom=MSDN&view=netcore-3.1#remarks --- Quasar.Client/Utilities/SingleInstanceMutex.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Quasar.Client/Utilities/SingleInstanceMutex.cs b/Quasar.Client/Utilities/SingleInstanceMutex.cs index 0672c972..6170e822 100644 --- a/Quasar.Client/Utilities/SingleInstanceMutex.cs +++ b/Quasar.Client/Utilities/SingleInstanceMutex.cs @@ -4,7 +4,7 @@ namespace Quasar.Client.Utilities { /// - /// A system-wide mutex that ensures that only one instance runs at a time. + /// A user-wide mutex that ensures that only one instance runs at a time. /// public class SingleInstanceMutex : IDisposable { @@ -29,7 +29,7 @@ public class SingleInstanceMutex : IDisposable /// The name of the mutex. public SingleInstanceMutex(string name) { - _appMutex = new Mutex(false, name, out var createdNew); + _appMutex = new Mutex(false, $"Local\\{name}", out var createdNew); CreatedNew = createdNew; }