mirror of https://github.com/docker/docs.git
disconnect on duplicate
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
parent
19b0ddcf4d
commit
4f688db989
|
@ -183,6 +183,7 @@ func (c *Cluster) addEngine(addr string) bool {
|
|||
} else {
|
||||
log.Debugf("node %q (name: %q) with address %q is already registered", engine.ID, engine.Name, engine.Addr)
|
||||
}
|
||||
engine.Disconnect()
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue