Add a core thread that periodically saves the configuration.
[Sone.git] / src / main / java / net / pterodactylus / sone / core / SoneInserter.java
index d4f53c1..f654d09 100644 (file)
@@ -244,7 +244,7 @@ public class SoneInserter extends AbstractService {
                                        }
                                        sone.setTime(insertTime);
                                        sone.setLatestEdition(finalUri.getEdition());
-                                       core.saveSone(sone);
+                                       core.touchConfiguration();
                                        success = true;
                                        logger.log(Level.INFO, "Inserted Sone ā€œ%sā€ at %s.", new Object[] { sone.getName(), finalUri });
                                } catch (SoneException se1) {