From: David ‘Bombe’ Roden Date: Sat, 8 Mar 2014 22:49:58 +0000 (+0100) Subject: Save configuration after stopping all databases. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=69e63b320880ff5bb75f91089bb81c19dd5e33de;p=Sone.git Save configuration after stopping all databases. --- diff --git a/src/main/java/net/pterodactylus/sone/database/memory/MemoryDatabase.java b/src/main/java/net/pterodactylus/sone/database/memory/MemoryDatabase.java index bace9d9..a06fd5f 100644 --- a/src/main/java/net/pterodactylus/sone/database/memory/MemoryDatabase.java +++ b/src/main/java/net/pterodactylus/sone/database/memory/MemoryDatabase.java @@ -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(); }