diff --git a/identity-android/src/main/java/com/android/identity/android/mdoc/transport/GattClient.java b/identity-android/src/main/java/com/android/identity/android/mdoc/transport/GattClient.java index 688ac96b8..a65e24111 100644 --- a/identity-android/src/main/java/com/android/identity/android/mdoc/transport/GattClient.java +++ b/identity-android/src/main/java/com/android/identity/android/mdoc/transport/GattClient.java @@ -547,6 +547,7 @@ void drainWritingQueue() { Logger.d(TAG, "Chunk is length 0, shutting down GattClient"); try { mGatt.disconnect(); + mGatt.close(); } catch (SecurityException e) { Logger.e(TAG, "Caught SecurityException while shutting down: " + e); }