The connection thread.
()
| 227 | * The connection thread. |
| 228 | */ |
| 229 | @Override public void run() { |
| 230 | IOIO ioio = null; |
| 231 | |
| 232 | while (true) { |
| 233 | if (ioio != null && (ioio.getState() != IOIO.State.CONNECTED || |
| 234 | !enabledFlag)) { |
| 235 | synchronousClose(ioio); |
| 236 | ioio = null; |
| 237 | } else if (ioio == null && enabledFlag && !shutdownFlag) |
| 238 | ioio = synchronousOpen(); |
| 239 | |
| 240 | if (shutdownFlag) { |
| 241 | synchronousClose(ioio); |
| 242 | return; |
| 243 | } |
| 244 | |
| 245 | idle(ioio); |
| 246 | } |
| 247 | } |
| 248 | } |
nothing calls this directly
no test coverage detected