mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 11:25:41 +03:00
missed locking around c.allocs access
This commit is contained in:
@@ -796,9 +796,11 @@ func (c *Client) restoreState() error {
|
||||
}
|
||||
|
||||
// All allocs restored successfully, run them!
|
||||
c.allocLock.Lock()
|
||||
for _, ar := range c.allocs {
|
||||
go ar.Run()
|
||||
}
|
||||
c.allocLock.Unlock()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user