mwan3: add sleep to release ipset reference

It turns out that under high system load, ipsets cannot be deleted. This
is because there is still a reference in iptables. A short sleep should
give the system time to clean this up.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2022-03-08 11:04:21 +01:00
parent 13c2604eb1
commit ed2e0b33ed

View file

@ -91,6 +91,8 @@ stop_service() {
} | $IPTR
done
# Needed for the firewall backend to release the ipsets reference
sleep 2
for ipset in $($IPS -n list | grep mwan3_); do
$IPS -q destroy $ipset
done