Software / code / prosody
Diff
plugins/mod_storage_internal.lua @ 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 |
| parent | 13340:92b7ccc76c3a |
| child | 13344:958c759d3897 |
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;