fix lock in cluster.go

Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
Victor Vieux
2015-06-09 12:18:38 -07:00
parent 3a1df50ed5
commit 12dac7560a

View File

@@ -397,7 +397,7 @@ func (c *Cluster) scheduleTask(t *task) bool {
for _, offer := range s.offers {
c.removeOffer(offer)
}
s.Unlock()
c.Unlock()
t.error <- err
return true
}