diff --git a/LeStorage/StoredCollection.swift b/LeStorage/StoredCollection.swift index 79d840c..dab0f5a 100644 --- a/LeStorage/StoredCollection.swift +++ b/LeStorage/StoredCollection.swift @@ -202,10 +202,10 @@ public class StoredCollection: RandomAccessCollection, SomeCollecti self._addOrUpdate(contentOfs: items, shouldSync: false) } } + self._setAsLoaded() } catch { Logger.error(error) } - self._setAsLoaded() } /// Loads the collection using the server data only if the collection file doesn't exists