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
1 changed files with 1 additions and 1 deletions

View File

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