aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_storage_internal.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_storage_internal.lua b/plugins/mod_storage_internal.lua
index 26dd6a0e..35d3269f 100644
--- a/plugins/mod_storage_internal.lua
+++ b/plugins/mod_storage_internal.lua
@@ -258,7 +258,9 @@ function archive:find(username, query)
return function()
local item = iter();
if item == nil then
- list:close();
+ if list.close then
+ list:close();
+ end
return
end
local key = item.key;