()
| 108 | } |
| 109 | |
| 110 | @Override public void close() { |
| 111 | closeServerSocket(); |
| 112 | |
| 113 | /* ensure that run() has finished before calling |
| 114 | MultiPort.close() */ |
| 115 | try { |
| 116 | thread.join(); |
| 117 | } catch (InterruptedException e) { |
| 118 | } |
| 119 | |
| 120 | super.close(); |
| 121 | } |
| 122 | |
| 123 | @Override public int getState() { |
| 124 | if (serverSocket == null) |
no test coverage detected