We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9e89aa commit 94aa30dCopy full SHA for 94aa30d
1 file changed
src/main/java/de/leonhard/storage/internal/FlatFile.java
@@ -286,11 +286,6 @@ public final boolean hasChanged() {
286
}
287
288
public final void forceReload() {
289
-
290
- if (reloadConsumer != null) {
291
- reloadConsumer.accept(this);
292
- }
293
294
Map<String, Object> out = new HashMap<>();
295
try {
296
out = readToMap();
@@ -303,6 +298,9 @@ public final void forceReload() {
303
298
this.fileData.loadData(out);
304
299
305
300
this.lastLoaded = System.currentTimeMillis();
301
+ if (this.reloadConsumer != null) {
302
+ this.reloadConsumer.accept(this);
+ }
306
307
308
0 commit comments