mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-23 09:49:16 +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;
|
outputRumble = false;
|
||||||
outputPendCount = 3;
|
outputPendCount = 3;
|
||||||
|
|
||||||
if (usingBT)
|
|
||||||
{
|
|
||||||
Monitor.Enter(outputReport);
|
Monitor.Enter(outputReport);
|
||||||
outReportBuffer.CopyTo(outputReport, 0);
|
outReportBuffer.CopyTo(outputReport, 0);
|
||||||
}
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -1165,7 +1162,7 @@ namespace DS4Windows
|
|||||||
}
|
}
|
||||||
catch { } // If it's dead already, don't worry about it.
|
catch { } // If it's dead already, don't worry about it.
|
||||||
|
|
||||||
if (usingBT) { Monitor.Exit(outputReport); }
|
Monitor.Exit(outputReport);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user