Skip to content

Commit

Permalink
Merge pull request #1835 from stgraber/master
Browse files Browse the repository at this point in the history
Bugfixes
  • Loading branch information
hallyn committed Apr 1, 2016
2 parents b08868e + 3cb413d commit 6704665
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lxd/container_lxc.go
Original file line number Diff line number Diff line change
Expand Up @@ -1422,14 +1422,12 @@ func (c *containerLXC) OnStop(target string) error {
// Stop the storage for this container
err := c.StorageStop()
if err != nil {
wg.Done()
return err
}

// Unlock the apparmor profile
err = AAUnloadProfile(c)
if err != nil {
return err
}
// Unload the apparmor profile
AAUnloadProfile(c)

// FIXME: The go routine can go away once we can rely on LXC_TARGET
go func(c *containerLXC, target string, wg *sync.WaitGroup) {
Expand Down

0 comments on commit 6704665

Please sign in to comment.