android-project/app/src/main/java/org/libsdl/app/HIDDeviceBLESteamController.java
changeset 12307 461ef7221483
parent 12292 f4dde3c6bae9
child 12389 5817dbd75619
equal deleted inserted replaced
12306:094a25b0d812 12307:461ef7221483
   622         mFrozen = frozen;
   622         mFrozen = frozen;
   623     }
   623     }
   624 
   624 
   625     @Override
   625     @Override
   626     public void shutdown() {
   626     public void shutdown() {
       
   627         close();
       
   628 
   627         BluetoothGatt g = mGatt;
   629         BluetoothGatt g = mGatt;
   628         if (g != null) {
   630         if (g != null) {
   629             g.disconnect();
   631             g.disconnect();
   630             g.close();
   632             g.close();
   631             mGatt = null;
   633             mGatt = null;