From 9f65d5df9adc9a47577c3f4e7ea434ccc80535f9 Mon Sep 17 00:00:00 2001 From: NobWow <73432240+NobWow@users.noreply.github.com> Date: Mon, 18 Jul 2022 00:34:18 +0600 Subject: [PATCH] Close the file after reading --- file.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/file.lua b/file.lua index a88598c..1c6d8a7 100644 --- a/file.lua +++ b/file.lua @@ -127,6 +127,7 @@ function process_bridge_listen(name, line_consumer, step) line_consumer(line) line = content:read() end + content:close() write(bridge.input, "") end) end @@ -150,4 +151,4 @@ function process_bridge_start(name, command, os_execute) end -- Export environment -return _ENV \ No newline at end of file +return _ENV