From b320348ec7fc3e0df573de229f8b56ee88dae947 Mon Sep 17 00:00:00 2001 From: Graham Date: Mon, 4 Apr 2022 20:20:02 +0100 Subject: [PATCH] Fix bug where music data file was closed on flush Signed-off-by: Graham --- cache/src/main/kotlin/org/openrs2/cache/DiskStore.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/src/main/kotlin/org/openrs2/cache/DiskStore.kt b/cache/src/main/kotlin/org/openrs2/cache/DiskStore.kt index bedd1800..0911452b 100644 --- a/cache/src/main/kotlin/org/openrs2/cache/DiskStore.kt +++ b/cache/src/main/kotlin/org/openrs2/cache/DiskStore.kt @@ -450,7 +450,7 @@ public class DiskStore private constructor( override fun flush() { data.flush() - musicData?.close() + musicData?.flush() for (index in indexes) { index?.flush()