Change sync output report method to add extra lock for recent changes

This commit is contained in:
Travis Nickles 2018-04-01 00:36:33 -05:00
parent a1d0836091
commit 33aef3a4c6

View File

@ -1149,11 +1149,8 @@ namespace DS4Windows
outputRumble = false;
outputPendCount = 3;
if (usingBT)
{
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
{