diff --git a/server/client.go b/server/client.go index 0c146114..a02a8072 100644 --- a/server/client.go +++ b/server/client.go @@ -1883,7 +1883,7 @@ func (c *client) processConnect(arg []byte) error { } } if ncs != _EMPTY_ { - c.ncs.Store(fmt.Sprintf("%s - %q", c, ncs)) + c.ncs.CompareAndSwap(nil, fmt.Sprintf("%s - %q", c, ncs)) } }