Just assign stream->cycle to descendant_last_cycle

This commit is contained in:
Tatsuhiro Tsujikawa 2015-09-14 22:20:08 +09:00
parent d22573086f
commit 991352d201
1 changed files with 1 additions and 2 deletions

View File

@ -205,8 +205,7 @@ void nghttp2_stream_reschedule(nghttp2_stream *stream) {
dep_stream->descendant_last_cycle = 0; dep_stream->descendant_last_cycle = 0;
stream->cycle = 0; stream->cycle = 0;
} else { } else {
dep_stream->descendant_last_cycle = dep_stream->descendant_last_cycle = stream->cycle;
nghttp2_max(dep_stream->descendant_last_cycle, stream->cycle);
stream->cycle = stream->cycle =
stream_next_cycle(stream, dep_stream->descendant_last_cycle); stream_next_cycle(stream, dep_stream->descendant_last_cycle);