diff --git a/briar-android/src/org/briarproject/plugins/droidtooth/DroidtoothPlugin.java b/briar-android/src/org/briarproject/plugins/droidtooth/DroidtoothPlugin.java index 16d40d43a9a568d21660547334e1bb44bede7e90..325a49d74f430d28cb733742b27525b38372fdf5 100644 --- a/briar-android/src/org/briarproject/plugins/droidtooth/DroidtoothPlugin.java +++ b/briar-android/src/org/briarproject/plugins/droidtooth/DroidtoothPlugin.java @@ -376,7 +376,8 @@ class DroidtoothPlugin implements DuplexPlugin { chosen = f.get(); return new DroidtoothTransportConnection(this, chosen); } catch (InterruptedException e) { - LOG.info("Interrupted while waiting for connection"); + LOG.info("Interrupted while exchanging invitations"); + Thread.currentThread().interrupt(); return null; } catch (ExecutionException e) { if (LOG.isLoggable(WARNING)) LOG.log(WARNING, e.toString(), e); diff --git a/briar-desktop/src/org/briarproject/plugins/bluetooth/BluetoothPlugin.java b/briar-desktop/src/org/briarproject/plugins/bluetooth/BluetoothPlugin.java index 669965f0d37a1d6e189ea66f7778c978aebf44dd..79e289c39ca3dd1b538f65f6e037a39a97e21f0f 100644 --- a/briar-desktop/src/org/briarproject/plugins/bluetooth/BluetoothPlugin.java +++ b/briar-desktop/src/org/briarproject/plugins/bluetooth/BluetoothPlugin.java @@ -294,7 +294,8 @@ class BluetoothPlugin implements DuplexPlugin { chosen = f.get(); return new BluetoothTransportConnection(this, chosen); } catch (InterruptedException e) { - LOG.info("Interrupted while waiting for connection"); + LOG.info("Interrupted while exchanging invitations"); + Thread.currentThread().interrupt(); return null; } catch (ExecutionException e) { if (LOG.isLoggable(WARNING)) LOG.log(WARNING, e.toString(), e);