diff --git a/sources/Data/Database/Local/LocalDatabaseInstance.uc b/sources/Data/Database/Local/LocalDatabaseInstance.uc index 7714efc..f4ee76f 100644 --- a/sources/Data/Database/Local/LocalDatabaseInstance.uc +++ b/sources/Data/Database/Local/LocalDatabaseInstance.uc @@ -98,6 +98,7 @@ protected function Finalizer() // Defaulting variables is not necessary, since this class does not // use object pool. CompleteAllTasks(); + WriteToDisk(); rootRecord = none; _.unreal.OnTick(self).Disconnect(); _.memory.Free(diskUpdateTimer); @@ -345,6 +346,7 @@ public final function Initialize(LocalDatabase config, DBRecord root) if (config.RequiresAcediaStructure()) { CreateAcediaStructure(config); } + ScheduleDiskUpdate(); } // Create JSON object at "/users" if something else (or nothing)