diff options
author | Kim Alvefur <zash@zash.se> | 2023-11-26 14:29:08 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-11-26 14:29:08 +0100 |
commit | 15f487b789c4347fb10d29d22087e6bc9278ec82 (patch) | |
tree | ac74c29b3b4f7260e7be250c1c1ec5640d3937cb /plugins | |
parent | 812652818dc1dbd21b4d7d8d6262da0a93c181db (diff) | |
download | prosody-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.lua | 4 |
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; |