Dave Wallace | caa52f3 | 2019-11-01 14:41:29 -0400 | [diff] [blame] | 1 | diff --git a/lib/quicly.c b/lib/quicly.c |
Dave Wallace | 504d023 | 2019-11-15 18:18:59 -0500 | [diff] [blame] | 2 | index 95d5f13..3f4fd18 100644 |
Dave Wallace | caa52f3 | 2019-11-01 14:41:29 -0400 | [diff] [blame] | 3 | --- a/lib/quicly.c |
| 4 | +++ b/lib/quicly.c |
Dave Wallace | 504d023 | 2019-11-15 18:18:59 -0500 | [diff] [blame] | 5 | @@ -351,7 +351,10 @@ static __thread int64_t now; |
Dave Wallace | caa52f3 | 2019-11-01 14:41:29 -0400 | [diff] [blame] | 6 | |
Dave Wallace | 504d023 | 2019-11-15 18:18:59 -0500 | [diff] [blame] | 7 | static void update_now(quicly_context_t *ctx) |
| 8 | { |
| 9 | - now = ctx->now->cb(ctx->now); |
| 10 | + int64_t newval = ctx->now->cb(ctx->now); |
Dave Wallace | caa52f3 | 2019-11-01 14:41:29 -0400 | [diff] [blame] | 11 | + |
Dave Wallace | 504d023 | 2019-11-15 18:18:59 -0500 | [diff] [blame] | 12 | + if (now < newval) |
| 13 | + now = newval; |
| 14 | } |
| 15 | |
| 16 | /** |