فهرست منبع

leave must not use join options in the defer during failures

Signed-off-by: Madhu Venugopal <madhu@docker.com>
Madhu Venugopal 10 سال پیش
والد
کامیت
bdeeda1703
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      libnetwork/endpoint.go

+ 1 - 1
libnetwork/endpoint.go

@@ -350,7 +350,7 @@ func (ep *endpoint) Join(containerID string, options ...EndpointOption) error {
 	defer func() {
 		ep.joinLeaveEnd()
 		if err != nil {
-			if e := ep.Leave(containerID, options...); e != nil {
+			if e := ep.Leave(containerID); e != nil {
 				log.Warnf("couldnt leave endpoint : %v", ep.name, err)
 			}
 		}