Skip to content

Commit

Permalink
prevent mem leak on Subscribe()
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-iniguez-goya committed Jul 26, 2022
1 parent c20f1c1 commit 2a6afcb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions daemon/ui/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,9 @@ func (c *Client) Subscribe() {
}

if tempConf, err := c.parseConf(clientCfg.Config); err == nil {
c.Lock()
clientConnectedRule.Action = rule.Action(tempConf.DefaultAction)
c.Unlock()
}
c.listenForNotifications()
}
Expand Down

0 comments on commit 2a6afcb

Please sign in to comment.