Fixes shutting down doesn't insert alerts in CH (#7949)

This commit is contained in:
Matteo Biscosi 2023-10-25 11:41:49 +00:00
parent 2db9bd7572
commit b970d0859e
3 changed files with 5 additions and 3 deletions

View file

@ -30,9 +30,11 @@ alert_utils.notify_ntopng_stop()
-- Check and possibly dump preferences to disk
prefs_dump_utils.check_dump_prefs_to_disk()
-- First of all release the alert of the system interface (current one)
alerts_api.releaseAllAlerts()
-- Then release the alerts of all other interfaces
for _, ifname in pairs(ifnames) do
interface.select(ifname)
-- Release all alerts
alerts_api.releaseAllAlerts()
end