Sfoglia il codice sorgente

Close on shutdown, for consistency

Sam Lantinga 6 anni fa
parent
commit
1e728f5075

+ 2 - 0
android-project/app/src/main/java/org/libsdl/app/HIDDeviceBLESteamController.java

@@ -624,6 +624,8 @@ class HIDDeviceBLESteamController extends BluetoothGattCallback implements HIDDe
 
     @Override
     public void shutdown() {
+        close();
+
         BluetoothGatt g = mGatt;
         if (g != null) {
             g.disconnect();