From d1f6eb1812001a6cd697e17c46b369fe78ca6d17 Mon Sep 17 00:00:00 2001 From: Madhu Venugopal Date: Fri, 23 Sep 2016 05:19:07 -0700 Subject: [PATCH] Allow the memberlist shutdown even if networkdb leave fails Signed-off-by: Madhu Venugopal --- libnetwork/networkdb/cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnetwork/networkdb/cluster.go b/libnetwork/networkdb/cluster.go index ed24e4c7a6..9d9ea163d6 100644 --- a/libnetwork/networkdb/cluster.go +++ b/libnetwork/networkdb/cluster.go @@ -190,7 +190,7 @@ func (nDB *NetworkDB) clusterLeave() error { mlist := nDB.memberlist if err := nDB.sendNodeEvent(NodeEventTypeLeave); err != nil { - return fmt.Errorf("failed to send node leave: %v", err) + logrus.Errorf("failed to send node leave: %v", err) } if err := mlist.Leave(time.Second); err != nil {