mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-22 07:13:45 +01:00
Close the file after reading
This commit is contained in:
parent
7eb5f09752
commit
9f65d5df9a
3
file.lua
3
file.lua
@ -127,6 +127,7 @@ function process_bridge_listen(name, line_consumer, step)
|
|||||||
line_consumer(line)
|
line_consumer(line)
|
||||||
line = content:read()
|
line = content:read()
|
||||||
end
|
end
|
||||||
|
content:close()
|
||||||
write(bridge.input, "")
|
write(bridge.input, "")
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
@ -150,4 +151,4 @@ function process_bridge_start(name, command, os_execute)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Export environment
|
-- Export environment
|
||||||
return _ENV
|
return _ENV
|
||||||
|
Loading…
Reference in New Issue
Block a user