MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / stop

Method stop

src/main/java/fielded/webserver/NanoHTTPD.java:145–153  ·  view source on GitHub ↗

Stop the server.

()

Source from the content-addressed store, hash-verified

143 * Stop the server.
144 */
145 public void stop() {
146 try {
147 safeClose(myServerSocket);
148 closeAllConnections();
149 myThread.join();
150 } catch (Exception e) {
151 e.printStackTrace();
152 }
153 }
154
155 /**
156 * Registers that a new connection has been set up.

Callers

nothing calls this directly

Calls 2

safeCloseMethod · 0.95
closeAllConnectionsMethod · 0.95

Tested by

no test coverage detected