diff --git a/components/net/sf/briar/plugins/bluetooth/BluetoothPlugin.java b/components/net/sf/briar/plugins/bluetooth/BluetoothPlugin.java index a7ba179a8d46eee2cfa86478014c763fd9d158c3..e4d2b92633ec5e3c7e6d87c7e6930186cf1b2e27 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);