Close on shutdown, for consistency

This commit is contained in:
Sam Lantinga 2018-10-08 12:49:28 -07:00
parent 1faa0d69ec
commit d6cb11d8cc

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();