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 1/2] 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 From 017f2119cb2f3b3eb06ff075d13eb5fa59fa8ba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20M=C3=BCller?= <34514239+appgurueu@users.noreply.github.com> Date: Sun, 17 Jul 2022 21:28:44 +0200 Subject: [PATCH 2/2] Credit NobWow --- Readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index dfda295..8a56af0 100644 --- a/Readme.md +++ b/Readme.md @@ -4,7 +4,7 @@ Multipurpose Minetest Modding Library ## About -No dependencies. Licensed under the MIT License. Written by Lars Mueller aka LMD or appguru(eu). Notable contributions by [luk3yx](https://github.com/luk3yx) in the form of suggestions, bug reports and fixes. +No dependencies. Licensed under the MIT License. Written by Lars Mueller aka LMD or appguru(eu). Notable contributions by [luk3yx](https://github.com/luk3yx) in the form of suggestions, bug reports and fixes. Another [bugfix](https://github.com/appgurueu/modlib/pull/7) by [NobWow](https://github.com/NobWow/). ## Tests @@ -421,4 +421,4 @@ Fixes, minor additions (such as a `hashheap`) * Fixes `math.fround` * Other minor fixes * Switch to lazy loading - * Do `_ = modlib.` to avoid lag spikes at run time \ No newline at end of file + * Do `_ = modlib.` to avoid lag spikes at run time