From 69e63b320880ff5bb75f91089bb81c19dd5e33de Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 8 Mar 2014 23:49:58 +0100 Subject: [PATCH] Save configuration after stopping all databases. --- .../java/net/pterodactylus/sone/database/memory/MemoryDatabase.java | 3 +++ 1 file changed, 3 insertions(+) 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(); } -- 2.7.4