comparison plugins/mod_debug_reset.lua @ 14137:368df9b2d511 13.0

mod_debug_reset: Rename unused variable to please linter
author Kim Alvefur <zash@zash.se>
date Fri, 17 Apr 2026 12:52:12 +0200
parents 8f50e7e43df4
children
comparison
equal deleted inserted replaced
14136:e27d94d8f505 14137:368df9b2d511
14 table.insert(hosts, host); 14 table.insert(hosts, host);
15 end 15 end
16 module:fire_event("server-resetting"); 16 module:fire_event("server-resetting");
17 for _, host in ipairs(hosts) do 17 for _, host in ipairs(hosts) do
18 hostmanager.deactivate(host); 18 hostmanager.deactivate(host);
19 for i = 1, 4 do 19 for _ = 1, 4 do
20 -- Run a few cycles to ensure full cleanup, including 20 -- Run a few cycles to ensure full cleanup, including
21 -- weak tables and finalizers 21 -- weak tables and finalizers
22 collectgarbage("collect"); 22 collectgarbage("collect");
23 end 23 end
24 hostmanager.activate(host); 24 hostmanager.activate(host);