From c72f56068f5b4e135858df3e5d5bcf0c6de9f88f Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sun, 4 Dec 2016 10:06:14 +0100 Subject: [PATCH] Should fix #25 --- src/util.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util.lua b/src/util.lua index b78d8ef..bb26a22 100644 --- a/src/util.lua +++ b/src/util.lua @@ -103,9 +103,8 @@ do --Create config file. return end - io.close(file) config = {} - for line in io.lines(path) do + for line in file:lines() do if line:sub(1,1) ~= "#" then local i, v = line:match("^(%S*) = (%S*)") if i and v then @@ -113,6 +112,7 @@ do end end end + io.close(file) end if config then