diff options
author | Sven Gothel <[email protected]> | 2022-01-25 15:26:27 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-01-25 15:26:27 +0100 |
commit | cab719c90702dd07224494203f9ee97a3c1adea1 (patch) | |
tree | 6838d774bea56bcbbb4b7af1f387d3b7637d4e89 /java/jau | |
parent | 777cc582d7cddd032fa0fd61c1e62d18159e8b34 (diff) |
EInfoReport: Use via share_ptr to allow CoW replacement and copy once (via Java as well); Drop JavaUplink, not used.
Diffstat (limited to 'java/jau')
-rw-r--r-- | java/jau/direct_bt/DBTDevice.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/java/jau/direct_bt/DBTDevice.java b/java/jau/direct_bt/DBTDevice.java index c7926cf7..0e1b44f6 100644 --- a/java/jau/direct_bt/DBTDevice.java +++ b/java/jau/direct_bt/DBTDevice.java @@ -652,8 +652,10 @@ public class DBTDevice extends DBTObject implements BTDevice @Override public final EInfoReport getEIR() { - getEIRImpl(eir_); - return eir_; + synchronized( eir_ ) { + getEIRImpl(eir_); + return eir_; + } } private native void getEIRImpl(final EInfoReport eir); |