From 1e728f5075a2449678de210e527133037c96035f Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 8 Oct 2018 12:49:28 -0700 Subject: [PATCH] Close on shutdown, for consistency --- .../main/java/org/libsdl/app/HIDDeviceBLESteamController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android-project/app/src/main/java/org/libsdl/app/HIDDeviceBLESteamController.java b/android-project/app/src/main/java/org/libsdl/app/HIDDeviceBLESteamController.java index 0ab226957..4cf114a29 100644 --- a/android-project/app/src/main/java/org/libsdl/app/HIDDeviceBLESteamController.java +++ b/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();