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