prevent mem leak on Subscribe()

This commit is contained in:
Gustavo Iñiguez Goia 2022-05-24 17:41:03 +02:00
parent 37caf49ca3
commit 558f3a78c3

View file

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