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