diff --git a/src/KFlearning/Program.cs b/src/KFlearning/Program.cs index 41b9441..c447c7e 100644 --- a/src/KFlearning/Program.cs +++ b/src/KFlearning/Program.cs @@ -34,7 +34,7 @@ static void Main(string[] args) { using (var mutex = new Mutex(true, MutexName)) { - if (mutex.WaitOne(MutexTimeout)) + if (!mutex.WaitOne(MutexTimeout)) { MessageBox.Show(Resources.SingleInstanceMessage, Resources.AppName, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); diff --git a/src/KFmaintenance/Program.cs b/src/KFmaintenance/Program.cs index 4b89cb1..3394d12 100644 --- a/src/KFmaintenance/Program.cs +++ b/src/KFmaintenance/Program.cs @@ -34,7 +34,7 @@ static void Main() { using (var mutex = new Mutex(true, MutexName)) { - if (mutex.WaitOne(MutexTimeout)) + if (!mutex.WaitOne(MutexTimeout)) { MessageBox.Show(Resources.SingleInstanceMessage, Resources.AppName, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);