Skip to content

Commit

Permalink
Merge pull request #3824 from nats-io/process-connect-fix
Browse files Browse the repository at this point in the history
Check if connection name was already set when storing it
  • Loading branch information
derekcollison committed Jan 27, 2023
2 parents 12d49a8 + c6e263f commit 4eed8ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/client.go
Expand Up @@ -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))
}
}

Expand Down

0 comments on commit 4eed8ba

Please sign in to comment.