Return the empty string instead of the fake address.

This commit is contained in:
akwizgran
2016-02-24 20:03:04 +00:00
parent 9789c0ff52
commit 000936b7a2
2 changed files with 17 additions and 16 deletions

View File

@@ -157,10 +157,12 @@ class DroidtoothPlugin implements DuplexPlugin {
adapter);
if (LOG.isLoggable(INFO))
LOG.info("Local address " + address);
// Advertise the Bluetooth address to contacts
TransportProperties p = new TransportProperties();
p.put("address", address);
callback.mergeLocalProperties(p);
if (!StringUtils.isNullOrEmpty(address)) {
// Advertise the Bluetooth address to contacts
TransportProperties p = new TransportProperties();
p.put("address", address);
callback.mergeLocalProperties(p);
}
// Bind a server socket to accept connections from contacts
BluetoothServerSocket ss;
try {