Prevent incompatible types: ServletContextHandler cannot be converted to Handler

This commit is contained in:
Tobi Schäfer 2024-05-25 15:26:18 +02:00
parent d67d0235bd
commit 441d952b35
Signed by: tobi
GPG key ID: 91FAE6FE2EBAC4C8

View file

@ -564,7 +564,9 @@ public class ApplicationManager implements XmlRpcHandler {
// unbind from Jetty HTTP server // unbind from Jetty HTTP server
if (ApplicationManager.this.jetty != null) { if (ApplicationManager.this.jetty != null) {
if (this.appContext != null) { if (this.appContext != null) {
ApplicationManager.this.context.removeHandler(this.appContext); // FIXME: Causing incompatible types: ServletContextHandler cannot be converted to Handler
// Is it necessary, anyway?
//ApplicationManager.this.context.removeHandler(this.appContext);
this.appContext.stop(); this.appContext.stop();
this.appContext.destroy(); this.appContext.destroy();
this.appContext = null; this.appContext = null;