mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Check if connection name was already set when storing it
Signed-off-by: Waldemar Quevedo <wally@nats.io>
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user