Disconnect from the server: internal use only. This should only be called by the internal functions in PApplet, use stop() instead from within your own sketches.
()
| 184 | * use stop() instead from within your own sketches. |
| 185 | */ |
| 186 | public void dispose() { |
| 187 | thread = null; |
| 188 | try { |
| 189 | if (input != null) { |
| 190 | input.close(); |
| 191 | input = null; |
| 192 | } |
| 193 | } catch (Exception e) { |
| 194 | e.printStackTrace(); |
| 195 | } |
| 196 | |
| 197 | try { |
| 198 | if (output != null) { |
| 199 | output.close(); |
| 200 | output = null; |
| 201 | } |
| 202 | } catch (Exception e) { |
| 203 | e.printStackTrace(); |
| 204 | } |
| 205 | |
| 206 | try { |
| 207 | if (socket != null) { |
| 208 | socket.close(); |
| 209 | socket = null; |
| 210 | } |
| 211 | } catch (Exception e) { |
| 212 | e.printStackTrace(); |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | |
| 217 | @Override |
no test coverage detected