()
| 98 | } |
| 99 | |
| 100 | @Override |
| 101 | public synchronized void close() { |
| 102 | error = true; |
| 103 | |
| 104 | for (AndroidPort port : ports) { |
| 105 | try { |
| 106 | port.close(); |
| 107 | } catch (IOException e) { |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | ports.clear(); |
| 112 | } |
| 113 | |
| 114 | @Override public int getState() { |
| 115 | return checkValid(); |
no test coverage detected