Fixes engaged alerts lost past shutdown

Fixes #5123
This commit is contained in:
Simone Mainardi 2021-03-24 09:50:37 +01:00
parent 0bddb93e9b
commit 6e97c87768

View file

@ -673,7 +673,7 @@ local function process_notifications_by_priority(ready_recipients, high_priority
-- Cycle until there are ready_recipients and total_budget left
local cur_time = os.time()
while #ready_recipients > 0 and total_budget >= 0 and cur_time <= deadline and not ntop.isDeadlineApproaching() do
while #ready_recipients > 0 and total_budget >= 0 and cur_time <= deadline and (force_export or not ntop.isDeadlineApproaching()) do
for i = #ready_recipients, 1, -1 do
local ready_recipient = ready_recipients[i]
local recipient = ready_recipient.recipient