summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-07-24 11:49:40 +0200
committerSven Gothel <[email protected]>2020-07-24 11:49:40 +0200
commitad58716e9514619c5b7279f7882fc762afbcb582 (patch)
tree5a8831c3e9420ba47882b6c57d8f581321735551 /java
parent703917c2b71cdb78ebcf737cc8c99160d28b3b78 (diff)
DBTGattCharacteristic removeAllAssociatedCharacteristicListener(..): Also clear valueNotificationCB
Diffstat (limited to 'java')
-rw-r--r--java/direct_bt/tinyb/DBTGattCharacteristic.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/java/direct_bt/tinyb/DBTGattCharacteristic.java b/java/direct_bt/tinyb/DBTGattCharacteristic.java
index bc9dd149..d2086e5f 100644
--- a/java/direct_bt/tinyb/DBTGattCharacteristic.java
+++ b/java/direct_bt/tinyb/DBTGattCharacteristic.java
@@ -269,6 +269,7 @@ public class DBTGattCharacteristic extends DBTObject implements BluetoothGattCha
if( disableIndicationNotification ) {
configNotificationIndication(false /* enableNotification */, false /* enableIndication */, new boolean[2]);
}
+ valueNotificationCB = null;
return getService().getDevice().removeAllAssociatedCharacteristicListener(this);
}