mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Fix: Duplicate event on network disconnect #48797
This fix resolves the issue where a network disconnect generates duplicate events. Co-authored-by: eyeamnoob <a.afraz.1380@gmail.com> Signed-off-by: AmirBuddy <badinlu.amirhossein@gmail.com> Signed-off-by: eyeamnoob <a.afraz.1380@gmail.com>
This commit is contained in:
@@ -1125,12 +1125,6 @@ func (daemon *Daemon) DisconnectFromNetwork(ctx context.Context, ctr *container.
|
||||
return err
|
||||
}
|
||||
|
||||
if n != nil {
|
||||
daemon.LogNetworkEventWithAttributes(n, events.ActionDisconnect, map[string]string{
|
||||
"container": ctr.ID,
|
||||
})
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user