Merge pull request #3824 from nats-io/process-connect-fix

Check if connection name was already set when storing it
This commit is contained in:
Derek Collison
2023-01-27 13:41:18 -08:00
committed by GitHub

View File

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