mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-02-21 10:02:02 +01:00
Add lock for DisconnectDongle
This commit is contained in:
parent
d37e0709c0
commit
d35ba4db98
@ -905,7 +905,11 @@ namespace DS4Windows
|
|||||||
disconnectReport[1] = 0x02;
|
disconnectReport[1] = 0x02;
|
||||||
Array.Clear(disconnectReport, 2, 63);
|
Array.Clear(disconnectReport, 2, 63);
|
||||||
|
|
||||||
result = hDevice.WriteFeatureReport(disconnectReport);
|
lock (outputReport)
|
||||||
|
{
|
||||||
|
result = hDevice.WriteFeatureReport(disconnectReport);
|
||||||
|
}
|
||||||
|
|
||||||
if (result && remove)
|
if (result && remove)
|
||||||
{
|
{
|
||||||
isDisconnecting = true;
|
isDisconnecting = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user