mirror of https://github.com/docker/docs.git
Merge pull request #1688 from Spritekin/master
Fixes swarm overloading slaves when using the mesos drivers.
This commit is contained in:
commit
e98456ea78
|
@ -444,6 +444,7 @@ func (c *Cluster) removeOffer(offer *mesosproto.Offer) bool {
|
|||
found := s.removeOffer(offer.Id.GetValue())
|
||||
if s.empty() {
|
||||
// Disconnect from engine
|
||||
s.engine.Disconnect()
|
||||
delete(c.agents, offer.SlaveId.GetValue())
|
||||
}
|
||||
return found
|
||||
|
|
Loading…
Reference in New Issue