diff --git a/server/src/main/kotlin/suwayomi/tachidesk/server/util/WebInterfaceManager.kt b/server/src/main/kotlin/suwayomi/tachidesk/server/util/WebInterfaceManager.kt index 7554d3e04..598f27140 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/server/util/WebInterfaceManager.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/server/util/WebInterfaceManager.kt @@ -380,7 +380,7 @@ object WebInterfaceManager { private fun extractDownload(zipFilePath: String, targetPath: String) { File(targetPath).mkdirs() - ZipFile(zipFilePath).extractAll(targetPath) + ZipFile(zipFilePath).use { it.extractAll(targetPath) } } fun isUpdateAvailable(currentVersion: String): Boolean {