Commit fe52cb58 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Improved logic when plugin fails to be unloaded.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/branches@9081 b35dd754-fafc-0310-a699-88a17e54d16e
parent a4bcbb12
......@@ -59,11 +59,19 @@ public class DebuggerPlugin implements Plugin, PropertyEventListener {
PropertyEventDispatcher.removeListener(this);
// Remove filter from filter chain builder
ConnectionManagerImpl connManager = (ConnectionManagerImpl) XMPPServer.getInstance().getConnectionManager();
if (connManager.getSocketAcceptor().getFilterChain().contains("rawDebugger")) {
connManager.getSocketAcceptor().getFilterChain().remove("rawDebugger");
}
if (connManager.getSSLSocketAcceptor().getFilterChain().contains("rawDebugger")) {
connManager.getSSLSocketAcceptor().getFilterChain().remove("rawDebugger");
}
// Remove the filters from existing sessions
if (defaultPortFilter != null) {
defaultPortFilter.shutdown();
}
if (oldPortFilter != null) {
oldPortFilter.shutdown();
}
// Remove the packet interceptor that prints interpreted XML
InterceptorManager.getInstance().removeInterceptor(interpretedPrinter);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment