From b773660bcafe1ccbab6796a7e55c118b76e85e9d Mon Sep 17 00:00:00 2001 From: akwizgran <akwizgran@users.sourceforge.net> Date: Mon, 28 Nov 2011 15:51:48 +0000 Subject: [PATCH] Advertise the Bluetooth address if the device is discoverable in either GIAC or LIAC mode. --- components/net/sf/briar/plugins/bluetooth/BluetoothPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/net/sf/briar/plugins/bluetooth/BluetoothPlugin.java b/components/net/sf/briar/plugins/bluetooth/BluetoothPlugin.java index a7ba179a8d..e4d2b92633 100644 --- a/components/net/sf/briar/plugins/bluetooth/BluetoothPlugin.java +++ b/components/net/sf/briar/plugins/bluetooth/BluetoothPlugin.java @@ -152,7 +152,7 @@ class BluetoothPlugin extends AbstractPlugin implements StreamPlugin { if(LOG.isLoggable(Level.WARNING)) LOG.warning(e.getMessage()); } // Advertise the address to contacts if the device is discoverable - if(localDevice.getDiscoverable() == DiscoveryAgent.GIAC) { + if(localDevice.getDiscoverable() != DiscoveryAgent.NOT_DISCOVERABLE) { TransportProperties p = callback.getLocalProperties(); p.put("address", localDevice.getBluetoothAddress()); callback.setLocalProperties(p); -- GitLab