diff options
author | Akshay Modi <nareshmodi@google.com> | 2018-08-10 12:55:43 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-08-10 13:02:21 -0700 |
commit | e35dc3ad3a0536a0fdacec50ec8aea95e5c087da (patch) | |
tree | 644840c741a2e48d4136a87439f89204012f7b1b /tensorflow/core/distributed_runtime | |
parent | 84fe668df5d79643cc431c075fe18cec908eb81f (diff) |
Fix keep alive stale condition.
PiperOrigin-RevId: 208254124
Diffstat (limited to 'tensorflow/core/distributed_runtime')
-rw-r--r-- | tensorflow/core/distributed_runtime/eager/eager_service_impl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/distributed_runtime/eager/eager_service_impl.h b/tensorflow/core/distributed_runtime/eager/eager_service_impl.h index 5723106aa6..2784c5d26e 100644 --- a/tensorflow/core/distributed_runtime/eager/eager_service_impl.h +++ b/tensorflow/core/distributed_runtime/eager/eager_service_impl.h @@ -167,7 +167,7 @@ class EagerServiceImpl { bool IsStale() { mutex_lock l(last_accessed_mu_); - return (destroy_after_micros_ <= 0 || + return (destroy_after_micros_ > 0 && (env_->env->NowMicros() - last_accessed_micros_) > destroy_after_micros_); } |