Commit 2d8ef9b1 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Improved destroy logic to be more resistent.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9136 b35dd754-fafc-0310-a699-88a17e54d16e
parent 797491d0
......@@ -84,11 +84,13 @@ public class BroadcastPlugin implements Plugin, Component, PropertyEventListener
public void destroyPlugin() {
PropertyEventDispatcher.removeListener(this);
// Unregister component.
try {
componentManager.removeComponent(serviceName);
}
catch (Exception e) {
componentManager.getLog().error(e);
if (componentManager != null) {
try {
componentManager.removeComponent(serviceName);
}
catch (Exception e) {
componentManager.getLog().error(e);
}
}
componentManager = null;
pluginManager = null;
......
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