Save configuration after stopping all databases.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 8 Mar 2014 22:49:58 +0000 (23:49 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 8 Mar 2014 22:49:58 +0000 (23:49 +0100)
src/main/java/net/pterodactylus/sone/database/memory/MemoryDatabase.java

index bace9d9..a06fd5f 100644 (file)
@@ -142,8 +142,11 @@ public class MemoryDatabase extends AbstractService implements Database {
        protected void doStop() {
                try {
                        memoryPostDatabase.stop();
+                       configuration.save();
                } catch (DatabaseException de1) {
                        logger.log(Level.WARNING, "Could not stop post database!", de1);
+               } catch (ConfigurationException ce1) {
+                       logger.log(Level.WARNING, "Could not save configuration!", ce1);
                }
                notifyStopped();
        }