Call saveConfig() on stop().
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 23 May 2009 13:45:28 +0000 (15:45 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 23 May 2009 13:45:28 +0000 (15:45 +0200)
src/net/pterodactylus/jsite/core/CoreImpl.java

index c61aa74..aded44f 100644 (file)
@@ -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 */