Close on shutdown, for consistency

Sam Lantinga 2018-10-08 12:49:28 -07:00
parent e4c9806f4f
commit 1e728f5075
1 changed files with 2 additions and 0 deletions

View File

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