aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-10-16 19:18:50 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-10-16 19:18:50 -0700
commita33eb8d7004c432880ffaaa11b591e59348df68d (patch)
tree730136401bbd90304a6e2dc59012422af0f58b2a /src/core
parent6bf5f833efe2cb9e2ecc14358dd9699cd5d05263 (diff)
Fix breakage
Diffstat (limited to 'src/core')
-rw-r--r--src/core/lib/security/credentials/oauth2/oauth2_credentials.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/security/credentials/oauth2/oauth2_credentials.cc b/src/core/lib/security/credentials/oauth2/oauth2_credentials.cc
index f52a424e36..7867105f56 100644
--- a/src/core/lib/security/credentials/oauth2/oauth2_credentials.cc
+++ b/src/core/lib/security/credentials/oauth2/oauth2_credentials.cc
@@ -262,7 +262,7 @@ static bool oauth2_token_fetcher_get_request_metadata(
grpc_mdelem cached_access_token_md = GRPC_MDNULL;
gpr_mu_lock(&c->mu);
if (!GRPC_MDISNULL(c->access_token_md) &&
- (c->token_expiration + grpc_exec_ctx_now(exec_ctx) > refresh_threshold)) {
+ (c->token_expiration - grpc_exec_ctx_now(exec_ctx) > refresh_threshold)) {
cached_access_token_md = GRPC_MDELEM_REF(c->access_token_md);
}
if (!GRPC_MDISNULL(cached_access_token_md)) {