From: David ‘Bombe’ Roden Date: Sat, 23 May 2009 13:45:28 +0000 (+0200) Subject: Call saveConfig() on stop(). X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=9c2ddb793a7ff39346b71a38fd2d7d7549e6d1f6;p=jSite2.git Call saveConfig() on stop(). --- diff --git a/src/net/pterodactylus/jsite/core/CoreImpl.java b/src/net/pterodactylus/jsite/core/CoreImpl.java index c61aa74..aded44f 100644 --- a/src/net/pterodactylus/jsite/core/CoreImpl.java +++ b/src/net/pterodactylus/jsite/core/CoreImpl.java @@ -165,6 +165,7 @@ public class CoreImpl implements Core, NodeListener { */ public void stop() { logger.log(Level.INFO, "stopping core…"); + saveConfig(); try { projectManager.save(); coreListenerSupport.fireSavingProjectsDone(projectManager.getDirectory()); @@ -262,7 +263,6 @@ public class CoreImpl implements Core, NodeListener { /** * Saves the configuration. */ - @SuppressWarnings("unused") private void saveConfig() { logger.log(Level.FINEST, "saveConfig()"); /* TODO */