mirror of
https://github.com/unmojang/authlib-injector.git
synced 2025-09-29 22:30:02 -04:00
nanohttpd: refactor: remove NanoHTTPD.closeAllConnections
This commit is contained in:
parent
848e6da6a9
commit
728e5d0d61
@ -258,13 +258,6 @@ public abstract class NanoHTTPD {
|
|||||||
this.myPort = port;
|
this.myPort = port;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Forcibly closes all connections that are open.
|
|
||||||
*/
|
|
||||||
public synchronized void closeAllConnections() {
|
|
||||||
stop();
|
|
||||||
}
|
|
||||||
|
|
||||||
public final int getListeningPort() {
|
public final int getListeningPort() {
|
||||||
return this.myServerSocket == null ? -1 : this.myServerSocket.getLocalPort();
|
return this.myServerSocket == null ? -1 : this.myServerSocket.getLocalPort();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user