mirror of
https://github.com/netbirdio/netbird.git
synced 2025-03-13 06:08:48 +01:00
Fix ingress manager unnecessary creation
This commit is contained in:
parent
6344e34880
commit
829e40d2aa
@ -1712,7 +1712,11 @@ func (e *Engine) updateForwardRules(rules []*mgmProto.ForwardingRule) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
if len(rules) == 0 && e.ingressGatewayMgr != nil {
|
||||
if len(rules) == 0 {
|
||||
if e.ingressGatewayMgr == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
err := e.ingressGatewayMgr.Close()
|
||||
e.ingressGatewayMgr = nil
|
||||
e.statusRecorder.SetIngressGwMgr(nil)
|
||||
|
Loading…
Reference in New Issue
Block a user