aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/datamanager.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua
index 35ce09a4..3a6a462f 100644
--- a/util/datamanager.lua
+++ b/util/datamanager.lua
@@ -361,6 +361,7 @@ local function build_list_index(username, host, datastore, items)
-- so we need to collect the "current" position at the end of the previous
prev_pos = fh:seek()
end
+ fh:close();
if prev_pos ~= 0 then
t_insert(items, { start = last_item_start; length = prev_pos - last_item_start });
end