diff --git a/daemon/ui/notifications.go b/daemon/ui/notifications.go index da3feec7..27fd929e 100644 --- a/daemon/ui/notifications.go +++ b/daemon/ui/notifications.go @@ -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() }