mirror of https://github.com/docker/docs.git
fix lock in cluster.go
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
parent
3a1df50ed5
commit
12dac7560a
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue