mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-22 15:23:48 +01:00
Close the file after reading
This commit is contained in:
parent
7eb5f09752
commit
9f65d5df9a
1
file.lua
1
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
|
||||||
|
Loading…
Reference in New Issue
Block a user