Stops this server. If it is already stopped, does nothing. Note that if an #setExecutor Executor was set, it must be closed separately.
()
| 2048 | * Note that if an {@link #setExecutor Executor} was set, it must be closed separately. |
| 2049 | */ |
| 2050 | public synchronized void stop() { |
| 2051 | try { |
| 2052 | if (serv != null) |
| 2053 | serv.close(); |
| 2054 | } catch (IOException ignore) {} |
| 2055 | serv = null; |
| 2056 | } |
| 2057 | |
| 2058 | /** |
| 2059 | * Handles communications for a single connection over the given streams. |