From 1d83354511dc8ba7115f48901c99907e51813e33 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Tue, 24 Dec 2024 03:20:12 +0100 Subject: [PATCH] Make sure the stream is closed properly --- .../engine/base/implementation/stream/FileAccessStream.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base/src/main/kotlin/de/staropensource/engine/base/implementation/stream/FileAccessStream.kt b/base/src/main/kotlin/de/staropensource/engine/base/implementation/stream/FileAccessStream.kt index 23a7ac9..e717cac 100644 --- a/base/src/main/kotlin/de/staropensource/engine/base/implementation/stream/FileAccessStream.kt +++ b/base/src/main/kotlin/de/staropensource/engine/base/implementation/stream/FileAccessStream.kt @@ -47,7 +47,9 @@ class FileAccessStream internal constructor(val file: FileAccess) : FileStream(s // -----> Closure - override fun closeStream() = Unit + override fun closeStream() { + inputStream.close() + } // -----> Writing