⚡️ Don’t save configuration for every Sone
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 26 Jul 2019 14:49:18 +0000 (16:49 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 26 Jul 2019 14:49:18 +0000 (16:49 +0200)
src/main/java/net/pterodactylus/sone/core/Core.java

index a5b219c..be4ce4e 100644 (file)
@@ -1507,8 +1507,6 @@ public class Core extends AbstractService implements SoneProvider, PostProvider,
                        configuration.getStringValue(sonePrefix + "/Options/ShowCustomAvatars").setValue(sone.getOptions().getShowCustomAvatars().name());
                        configuration.getStringValue(sonePrefix + "/Options/LoadLinkedImages").setValue(sone.getOptions().getLoadLinkedImages().name());
 
-                       configuration.save();
-
                        webOfTrustUpdater.setProperty((OwnIdentity) sone.getIdentity(), "Sone.LatestEdition", String.valueOf(sone.getLatestEdition()));
 
                        logger.log(Level.INFO, String.format("Sone %s saved.", sone));