Merge pull request #341 from alexstaeding/feature/shutdown-api

Add shutdown methods to ProxyServer
This commit is contained in:
Andrew Steinborn
2020-08-05 11:35:38 -04:00
committed by GitHub
2 changed files with 23 additions and 0 deletions

View File

@@ -453,6 +453,16 @@ public class VelocityServer implements ProxyServer, ForwardingAudience {
shutdown(explicitExit, TextComponent.of("Proxy shutting down."));
}
@Override
public void shutdown(TextComponent reason) {
shutdown(true, reason);
}
@Override
public void shutdown() {
shutdown(true);
}
public AsyncHttpClient getAsyncHttpClient() {
return cm.getHttpClient();
}