aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-11-26 14:29:08 +0100
committerKim Alvefur <zash@zash.se>2023-11-26 14:29:08 +0100
commit15f487b789c4347fb10d29d22087e6bc9278ec82 (patch)
treeac74c29b3b4f7260e7be250c1c1ec5640d3937cb /plugins
parent812652818dc1dbd21b4d7d8d6262da0a93c181db (diff)
downloadprosody-15f487b789c4347fb10d29d22087e6bc9278ec82.tar.gz
prosody-15f487b789c4347fb10d29d22087e6bc9278ec82.zip
mod_storage_internal: Only close lazy-loading list store abstractions
Since datamanager can fall back to the old method of loading the whole list, which wouldn't come with a :close method.
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;