prevent mem leak on Subscribe()

This commit is contained in:
Gustavo Iñiguez Goia 2022-05-24 17:41:03 +02:00
parent c20f1c1f03
commit 2a6afcba80

View file

@ -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()
}