Raise interrupt flag when catching InterruptedException.

This commit is contained in:
akwizgran
2016-03-07 12:17:00 +00:00
parent 0ac67239e3
commit fe9c3adc64
2 changed files with 4 additions and 2 deletions

View File

@@ -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);