Skip to content

Commit 94aa30d

Browse files
committed
Resolve issue in reload consumer
1 parent f9e89aa commit 94aa30d

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/main/java/de/leonhard/storage/internal/FlatFile.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,6 @@ public final boolean hasChanged() {
286286
}
287287

288288
public final void forceReload() {
289-
290-
if (reloadConsumer != null) {
291-
reloadConsumer.accept(this);
292-
}
293-
294289
Map<String, Object> out = new HashMap<>();
295290
try {
296291
out = readToMap();
@@ -303,6 +298,9 @@ public final void forceReload() {
303298
this.fileData.loadData(out);
304299
}
305300
this.lastLoaded = System.currentTimeMillis();
301+
if (this.reloadConsumer != null) {
302+
this.reloadConsumer.accept(this);
303+
}
306304
}
307305
}
308306

0 commit comments

Comments
 (0)