Call on_data_chunk_recv_callback only when stream is active

This commit is contained in:
Tatsuhiro Tsujikawa 2014-05-29 22:18:52 +09:00
parent d113055899
commit 832f2fc00f
1 changed files with 1 additions and 1 deletions

View File

@ -5195,7 +5195,7 @@ ssize_t nghttp2_session_mem_recv(nghttp2_session *session,
DEBUGF(fprintf(stderr, "recv: data_readlen=%zu\n", data_readlen)); DEBUGF(fprintf(stderr, "recv: data_readlen=%zu\n", data_readlen));
if(data_readlen > 0 && if(stream && data_readlen > 0 &&
session->callbacks.on_data_chunk_recv_callback) { session->callbacks.on_data_chunk_recv_callback) {
rv = session->callbacks.on_data_chunk_recv_callback rv = session->callbacks.on_data_chunk_recv_callback
(session, (session,