mirror of
https://github.com/ShareX/ShareX.git
synced 2024-08-26 23:51:37 +12:00
Merge pull request #1382 from campbeb/770a
Handle multiple context menu selections - Move semaphore release
This commit is contained in:
commit
ba52956c2c
1 changed files with 2 additions and 2 deletions
|
@ -54,8 +54,6 @@ public static bool CreateSingleInstance(string name, EventHandler<InstanceCallba
|
||||||
UpdateRemoteObject(name);
|
UpdateRemoteObject(name);
|
||||||
|
|
||||||
if (eventWaitHandle != null) eventWaitHandle.Set();
|
if (eventWaitHandle != null) eventWaitHandle.Set();
|
||||||
|
|
||||||
semaphore.Release();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Environment.Exit(0);
|
Environment.Exit(0);
|
||||||
|
@ -125,6 +123,8 @@ private static void WaitOrTimerCallback(object state, bool timedOut)
|
||||||
if (callback == null) return;
|
if (callback == null) return;
|
||||||
|
|
||||||
callback(state, new InstanceCallbackEventArgs(InstanceProxy.IsFirstInstance, InstanceProxy.CommandLineArgs));
|
callback(state, new InstanceCallbackEventArgs(InstanceProxy.IsFirstInstance, InstanceProxy.CommandLineArgs));
|
||||||
|
|
||||||
|
semaphore.Release();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue