From: David ‘Bombe’ Roden Date: Sat, 25 Jul 2015 10:54:23 +0000 (+0200) Subject: Deregister logger handlers as last thing X-Git-Tag: 0.9.4^2~9 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=48e66da8526834b24b80551819321e9a14fd1c8f;p=Sone.git Deregister logger handlers as last thing --- diff --git a/src/main/java/net/pterodactylus/sone/main/SonePlugin.java b/src/main/java/net/pterodactylus/sone/main/SonePlugin.java index 1df4a33..ffaad9f 100644 --- a/src/main/java/net/pterodactylus/sone/main/SonePlugin.java +++ b/src/main/java/net/pterodactylus/sone/main/SonePlugin.java @@ -295,7 +295,6 @@ public class SonePlugin implements FredPlugin, FredPluginFCP, FredPluginL10n, Fr */ @Override public void terminate() { - deregisterLoggerHandlers(); try { /* stop the web interface. */ webInterface.stop(); @@ -307,6 +306,8 @@ public class SonePlugin implements FredPlugin, FredPluginFCP, FredPluginL10n, Fr webOfTrustConnector.stop(); } catch (Throwable t1) { logger.log(Level.SEVERE, "Error while shutting down!", t1); + } finally { + deregisterLoggerHandlers(); } }