()
| 83 | } |
| 84 | |
| 85 | @Override public void run() { |
| 86 | try { |
| 87 | BluetoothSocket socket = this.socket; |
| 88 | if (socket != null) { |
| 89 | socket.connect(); |
| 90 | this.socket = null; |
| 91 | setPort(new BluetoothPort(socket)); |
| 92 | } |
| 93 | } catch (Exception e) { |
| 94 | Log.e(TAG, "Failed to connect to Bluetooth", e); |
| 95 | error(e.getMessage()); |
| 96 | } finally { |
| 97 | socket = null; |
| 98 | thread = null; |
| 99 | stateChanged(); |
| 100 | } |
| 101 | } |
| 102 | } |
nothing calls this directly
no test coverage detected