From 991352d201ece861751147f3da111f45e13b55a1 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 14 Sep 2015 22:20:08 +0900 Subject: [PATCH] Just assign stream->cycle to descendant_last_cycle --- lib/nghttp2_stream.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/nghttp2_stream.c b/lib/nghttp2_stream.c index cacece7e..904a29ac 100644 --- a/lib/nghttp2_stream.c +++ b/lib/nghttp2_stream.c @@ -205,8 +205,7 @@ void nghttp2_stream_reschedule(nghttp2_stream *stream) { dep_stream->descendant_last_cycle = 0; stream->cycle = 0; } else { - dep_stream->descendant_last_cycle = - nghttp2_max(dep_stream->descendant_last_cycle, stream->cycle); + dep_stream->descendant_last_cycle = stream->cycle; stream->cycle = stream_next_cycle(stream, dep_stream->descendant_last_cycle);