fix(menubar): close count_file after opening

closes #1548
This commit is contained in:
actionless 2017-02-10 11:05:48 +01:00 committed by Yauhen Kirylau
parent 439d0c804c
commit 978889e739
1 changed files with 2 additions and 0 deletions

View File

@ -132,6 +132,7 @@ local function load_count_table()
count_table[name] = count
end
end
count_file:close()
end
return count_table
@ -150,6 +151,7 @@ local function write_count_table(count_table)
io.write(str)
end
io.flush()
count_file:close()
end
end