Software /
code /
prosody
Changeset
13343:9a9455de295d
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.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 26 Nov 2023 14:29:08 +0100 |
parents | 13342:d0a9b631a937 |
children | 13344:958c759d3897 |
files | plugins/mod_storage_internal.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_storage_internal.lua Fri Nov 24 13:41:21 2023 +0100 +++ b/plugins/mod_storage_internal.lua Sun Nov 26 14:29:08 2023 +0100 @@ -258,7 +258,9 @@ return function() local item = iter(); if item == nil then - list:close(); + if list.close then + list:close(); + end return end local key = item.key;