nanohttpd: refactor: remove NanoHTTPD.closeAllConnections

This commit is contained in:
Haowei Wen 2020-08-26 20:19:51 +08:00
parent 848e6da6a9
commit 728e5d0d61
No known key found for this signature in database
GPG key ID: 5BC167F73EA558E4

View file

@ -258,13 +258,6 @@ public abstract class NanoHTTPD {
this.myPort = port;
}
/**
* Forcibly closes all connections that are open.
*/
public synchronized void closeAllConnections() {
stop();
}
public final int getListeningPort() {
return this.myServerSocket == null ? -1 : this.myServerSocket.getLocalPort();
}