mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #706 from mavenugo/leave
Dont notify the leave if the serf is not inited
This commit is contained in:
commit
38270b30b4
1 changed files with 6 additions and 4 deletions
|
@ -118,10 +118,12 @@ func (d *driver) Leave(nid, eid string) error {
|
||||||
return fmt.Errorf("could not find network with id %s", nid)
|
return fmt.Errorf("could not find network with id %s", nid)
|
||||||
}
|
}
|
||||||
|
|
||||||
d.notifyCh <- ovNotify{
|
if d.notifyCh != nil {
|
||||||
action: "leave",
|
d.notifyCh <- ovNotify{
|
||||||
nid: nid,
|
action: "leave",
|
||||||
eid: eid,
|
nid: nid,
|
||||||
|
eid: eid,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
n.leaveSandbox()
|
n.leaveSandbox()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue