Code cleanup

This commit is contained in:
Tatsuhiro Tsujikawa 2014-01-17 10:15:14 +09:00
parent 5d535766bf
commit b2bf18d40f
1 changed files with 2 additions and 2 deletions

View File

@ -2059,7 +2059,7 @@ static int session_end_request_headers_received(nghttp2_session *session,
stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_RD);
rv = nghttp2_session_call_on_request_recv(session, frame->hd.stream_id);
if(nghttp2_is_fatal(rv)) {
if(rv != 0) {
return rv;
}
}
@ -2102,7 +2102,7 @@ static int session_end_headers_received(nghttp2_session *session,
if(!nghttp2_session_is_my_stream_id(session, frame->hd.stream_id)) {
rv = nghttp2_session_call_on_request_recv(session,
frame->hd.stream_id);
if(nghttp2_is_fatal(rv)) {
if(rv != 0) {
return rv;
}
}