fix ipset busy error

This commit is contained in:
Vladimir Avtsenov 2024-09-06 14:52:25 +03:00
parent afa1ae998a
commit e04f651868

View File

@ -70,16 +70,16 @@ func (g *Group) Disable() []error {
return nil
}
err := g.ipset.Destroy()
if err != nil {
errs = append(errs, err)
}
errs2 := g.ifaceToIPSet.Disable()
if errs2 != nil {
errs = append(errs, errs2...)
}
err := g.ipset.Destroy()
if err != nil {
errs = append(errs, err)
}
g.Enabled = false
return nil