Fix race, bump version to RC1

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2019-01-11 10:58:26 -08:00
parent a9735def02
commit 7d6b9144de
2 changed files with 5 additions and 1 deletions

View File

@@ -780,7 +780,11 @@ func (a *Account) clearExpirationTimer() bool {
return stopped
}
// Check expiration and set the proper state as needed.
func (a *Account) checkExpiration(claims *jwt.ClaimsData) {
a.mu.Lock()
defer a.mu.Unlock()
a.clearExpirationTimer()
if claims.Expires == 0 {
a.expired = false

View File

@@ -40,7 +40,7 @@ var (
const (
// VERSION is the current version for the server.
VERSION = "2.0.0-beta.13"
VERSION = "2.0.0-RC1"
// PROTO is the currently supported protocol.
// 0 was the original