mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-23 01:39:17 +01:00
Change sync output report method to add extra lock for recent changes
This commit is contained in:
parent
a1d0836091
commit
33aef3a4c6
@ -1149,11 +1149,8 @@ namespace DS4Windows
|
||||
outputRumble = false;
|
||||
outputPendCount = 3;
|
||||
|
||||
if (usingBT)
|
||||
{
|
||||
Monitor.Enter(outputReport);
|
||||
outReportBuffer.CopyTo(outputReport, 0);
|
||||
}
|
||||
Monitor.Enter(outputReport);
|
||||
outReportBuffer.CopyTo(outputReport, 0);
|
||||
|
||||
try
|
||||
{
|
||||
@ -1165,7 +1162,7 @@ namespace DS4Windows
|
||||
}
|
||||
catch { } // If it's dead already, don't worry about it.
|
||||
|
||||
if (usingBT) { Monitor.Exit(outputReport); }
|
||||
Monitor.Exit(outputReport);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user