Called by the connection thread to close the connection.
(IOIO ioio)
| 173 | * Called by the connection thread to close the connection. |
| 174 | */ |
| 175 | private void synchronousClose(IOIO ioio) { |
| 176 | if (ioio == null) |
| 177 | return; |
| 178 | |
| 179 | openFlag = false; |
| 180 | listener.onIOIODisconnect(ioio); |
| 181 | ioio.disconnect(); |
| 182 | } |
| 183 | |
| 184 | private void idle(IOIO ioio) { |
| 185 | if (interrupted()) |