blob: 589d8cde1256c7cdd983dde3fbf31eb1fe24b268 [file] [log] [blame]
Dave Wallacecaa52f32019-11-01 14:41:29 -04001diff --git a/lib/quicly.c b/lib/quicly.c
Dave Wallace504d0232019-11-15 18:18:59 -05002index 95d5f13..3f4fd18 100644
Dave Wallacecaa52f32019-11-01 14:41:29 -04003--- a/lib/quicly.c
4+++ b/lib/quicly.c
Dave Wallace504d0232019-11-15 18:18:59 -05005@@ -351,7 +351,10 @@ static __thread int64_t now;
Dave Wallacecaa52f32019-11-01 14:41:29 -04006
Dave Wallace504d0232019-11-15 18:18:59 -05007 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 Wallacecaa52f32019-11-01 14:41:29 -040011+
Dave Wallace504d0232019-11-15 18:18:59 -050012+ if (now < newval)
13+ now = newval;
14 }
15
16 /**