mirror of
https://github.com/docker/docs.git
synced 2026-04-03 01:38:58 +07:00
fix lock in cluster.go
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user