mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-23 23:21:49 +01:00
Modify check for EventWaitHandle
This commit is contained in:
parent
ffbcdb21b3
commit
e5cd923e03
@ -81,7 +81,9 @@ namespace DS4Windows
|
||||
try
|
||||
{
|
||||
// another instance is already running if OpenExsting succeeds.
|
||||
threadComEvent = EventWaitHandle.OpenExisting(SingleAppComEventName);
|
||||
threadComEvent = EventWaitHandle.OpenExisting(SingleAppComEventName,
|
||||
System.Security.AccessControl.EventWaitHandleRights.Synchronize |
|
||||
System.Security.AccessControl.EventWaitHandleRights.Modify);
|
||||
threadComEvent.Set(); // signal the other instance.
|
||||
threadComEvent.Close();
|
||||
return; // return immediatly.
|
||||
|
Loading…
Reference in New Issue
Block a user