Write end marker after albums.
[Sone.git] / src / main / java / net / pterodactylus / sone / core / Core.java
index 699d5b7..4e3df64 100644 (file)
@@ -1454,6 +1454,7 @@ public class Core implements IdentityListener, UpdateListener {
                                configuration.getStringValue(albumPrefix + "/Description").setValue(album.getDescription());
                                configuration.getStringValue(albumPrefix + "/Parent").setValue(album.getParent() == null ? null : album.getParent().getId());
                        }
+                       configuration.getStringValue(sonePrefix + "/Albums/" + albumCounter + "/ID").setValue(null);
 
                        /* save options. */
                        configuration.getBooleanValue(sonePrefix + "/Options/AutoFollow").setValue(sone.getOptions().getBooleanOption("AutoFollow").getReal());