@ -386,8 +386,9 @@ func main() {
}
// Store fast token if a new one is received.
if client.Fast.Token != "" && client.Fast.Token != fast.Token {
// Update fast token if a new one is received or expiry time is reduced.
if (client.Fast.Token != "" && client.Fast.Token != fast.Token) ||
client.Fast.Expiry.Before(fast.Expiry) {
fast.Token = client.Fast.Token
fast.Mechanism = client.Fast.Mechanism
fast.Expiry = client.Fast.Expiry