diff options
Diffstat (limited to 'src/lib/exchange_api_handle.c')
-rw-r--r-- | src/lib/exchange_api_handle.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c index 615239723..32234ee66 100644 --- a/src/lib/exchange_api_handle.c +++ b/src/lib/exchange_api_handle.c @@ -1079,8 +1079,9 @@ TALER_EXCHANGE_check_keys_current (struct TALER_EXCHANGE_Handle *exchange, exchange->state = MHS_INIT; } if ( (! force_download) && - (0 < GNUNET_TIME_absolute_get_remaining ( - exchange->key_data_expiration).rel_value_us) ) + (! GNUNET_TIME_relative_is_zero ( + GNUNET_TIME_absolute_get_remaining ( + exchange->key_data_expiration)) ) ) return exchange->key_data_expiration; if (NULL == exchange->retry_task) exchange->retry_task = GNUNET_SCHEDULER_add_now (&request_keys, |