Unverified Commit fe9c3adc authored by akwizgran's avatar akwizgran
Browse files

Raise interrupt flag when catching InterruptedException.

parent 0ac67239
......@@ -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);
......
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment