mirror of
https://github.com/clearlinux/libnetwork.git
synced 2026-09-04 21:01:42 +00:00
Merge pull request #441 from aboch/ard
Fix bug "...has already joined the endpoint"
This commit is contained in:
+2
-1
@@ -415,7 +415,8 @@ func (ep *endpoint) Join(containerID string, options ...EndpointOption) error {
|
||||
}
|
||||
defer func() {
|
||||
if err != nil {
|
||||
if err = driver.Leave(nid, epid); err != nil {
|
||||
// Do not alter global err variable, it's needed by the previous defer
|
||||
if err := driver.Leave(nid, epid); err != nil {
|
||||
log.Warnf("driver leave failed while rolling back join: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user