Commit b3c1b345 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

[JM-1178] Simple fix to remove plugins even if their directory doesn't currently exist.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10118 b35dd754-fafc-0310-a699-88a17e54d16e
parent 5dee0c21
......@@ -1169,7 +1169,7 @@ public class PluginManager {
}
}
}
boolean deleted = dir.delete();
boolean deleted = !dir.exists() || dir.delete();
if (deleted) {
// Remove the JAR/WAR file that created the plugin folder
pluginFiles.remove(dir.getName());
......
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