Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-14 06:13:09 +00:00

zapret-lib,zapret-auto: do not use desync copy to not lose VERDICT_MODIFY changes

This commit is contained in:
bol-van
2025-12-10 13:43:39 +03:00
parent 5c05c10f83
commit 33ac18ea6b
2 changed files with 6 additions and 5 deletions

View File

@@ -244,12 +244,11 @@ function circular(ctx, desync)
end
DLOG("circular: current strategy "..hrec.nstrategy)
local dcopy = desync_copy(desync)
while true do
local instance = plan_instance_pop(desync)
if not instance then break end
if instance.arg.strategy and tonumber(instance.arg.strategy)==hrec.nstrategy then
verdict = plan_instance_execute(dcopy, verdict, instance)
verdict = plan_instance_execute(desync, verdict, instance)
end
end