Merge pull request #1688 from Spritekin/master

Fixes swarm overloading slaves when using the mesos drivers.
This commit is contained in:
Victor Vieux 2016-01-29 16:35:50 -08:00
commit e98456ea78
1 changed files with 1 additions and 0 deletions

View File

@ -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