fixes cpu busy spinning when there is no hid data available (#356)

This commit is contained in:
Robert Borg 2020-05-19 20:46:27 +02:00 committed by GitHub
parent f1d4febf8f
commit c4f5bbdc56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -775,6 +775,7 @@ namespace BetterJoyForCemu {
} else if (a == 0) {
// The non-blocking read timed out. No need to sleep.
// No need to increase attempts because it's not an error.
Thread.Sleep((Int32)5);
}
}
}