mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-05 22:30:29 +00:00
One minor fix that didn't get into the previous commit
This commit is contained in:
parent
5fc6124d5f
commit
a871d5c56d
1 changed files with 5 additions and 3 deletions
|
|
@ -285,9 +285,11 @@ class HIDDeviceUSB implements HIDDevice {
|
|||
}
|
||||
mInputThread = null;
|
||||
}
|
||||
if (mConnection != null && mClaimed) {
|
||||
UsbInterface iface = mDevice.getInterface(mInterfaceIndex);
|
||||
mConnection.releaseInterface(iface);
|
||||
if (mConnection != null) {
|
||||
if (mClaimed) {
|
||||
UsbInterface iface = mDevice.getInterface(mInterfaceIndex);
|
||||
mConnection.releaseInterface(iface);
|
||||
}
|
||||
mConnection.close();
|
||||
mConnection = null;
|
||||
mClaimed = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue