diff --git a/CHANGELOG.md b/CHANGELOG.md index f0fb5165..c1b8015b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Fixed `MarkAddEvent`, `MarkChangeEvent` and `MarkRemoveEvent` position - Fixed crash of concurrent Windows TTS synthesis ([#223](https://github.com/DCS-gRPC/rust-server/issues/223)) +- Fixed file handler left open: Closing config file again after reading it in LUA ## [0.7.1] - 2023-01-08 diff --git a/lua/Hooks/DCS-gRPC.lua b/lua/Hooks/DCS-gRPC.lua index 596ed6d2..c14e8a97 100644 --- a/lua/Hooks/DCS-gRPC.lua +++ b/lua/Hooks/DCS-gRPC.lua @@ -20,6 +20,7 @@ local function init() local f = assert(loadstring(file:read("*all"))) setfenv(f, GRPC) f() + io.close(file) log.write("[GRPC-Hook]", log.INFO, "`Config/dcs-grpc.lua` successfully read") else log.write("[GRPC-Hook]", log.INFO, "`Config/dcs-grpc.lua` not found (" .. tostring(err) .. ")")