Flush underlying Store when a Cache is flushed

This ensures the buffered data in BufferedFileChannels is written to
disk even if close() is never called.

Signed-off-by: Graham <gpe@openrs2.org>
master
Graham 3 years ago
parent b320348ec7
commit caaddad0ed
  1. 2
      cache/src/main/kotlin/org/openrs2/cache/Cache.kt

@ -227,6 +227,8 @@ public class Cache private constructor(
for (archive in archives) {
archive?.flush()
}
store.flush()
}
/**

Loading…
Cancel
Save