MCPcopy Create free account
hub / github.com/curtcox/JLHTTP / stop

Method stop

src/main/java/net/freeutils/httpserver/HTTPServer.java:2050–2056  ·  view source on GitHub ↗

Stops this server. If it is already stopped, does nothing. Note that if an #setExecutor Executor was set, it must be closed separately.

()

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected