# HG changeset patch # User Kim Alvefur # Date 1701005348 -3600 # Node ID 9a9455de295dfe3cbc56e0ad1519d10d53bedeaf # Parent d0a9b631a937fcc6454e2d576015d0e817beccf5 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. diff -r d0a9b631a937 -r 9a9455de295d plugins/mod_storage_internal.lua --- 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;