Skip to content

Commit

Permalink
Merge pull request #12259 from monstermunchkin/fixes/rbac
Browse files Browse the repository at this point in the history
lxd/auth: Exit goroutine if RBAC has been disabled
  • Loading branch information
tomponline authored Sep 15, 2023
2 parents f4faf3d + ee0ce57 commit b3fd3c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lxd/auth/driver_rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ func (r *rbac) startStatusCheck() {

go func() {
for {
if r.ctx.Err() != nil {
return
}

if status.LastChange != "" {
values := url.Values{}
values.Set("last-change", status.LastChange)
Expand Down

0 comments on commit b3fd3c8

Please sign in to comment.