Code cleanup

This commit is contained in:
Tatsuhiro Tsujikawa 2015-02-12 23:02:17 +09:00
parent 57a50f981b
commit 0bdacd3e77
1 changed files with 6 additions and 7 deletions

View File

@ -2664,8 +2664,8 @@ static ssize_t nghttp2_session_mem_send_internal(nghttp2_session *session,
/* The library is responsible for the transmission of /* The library is responsible for the transmission of
WINDOW_UPDATE frame, so we don't call error callback for WINDOW_UPDATE frame, so we don't call error callback for
it. */ it. */
if (frame->hd.type != NGHTTP2_WINDOW_UPDATE) { if (frame->hd.type != NGHTTP2_WINDOW_UPDATE &&
if (session->callbacks.on_frame_not_send_callback( session->callbacks.on_frame_not_send_callback(
session, frame, rv, session->user_data) != 0) { session, frame, rv, session->user_data) != 0) {
nghttp2_outbound_item_free(item, mem); nghttp2_outbound_item_free(item, mem);
@ -2673,7 +2673,6 @@ static ssize_t nghttp2_session_mem_send_internal(nghttp2_session *session,
return NGHTTP2_ERR_CALLBACK_FAILURE; return NGHTTP2_ERR_CALLBACK_FAILURE;
} }
}
/* We have to close stream opened by failed request HEADERS /* We have to close stream opened by failed request HEADERS
or PUSH_PROMISE. */ or PUSH_PROMISE. */
switch (item->frame.hd.type) { switch (item->frame.hd.type) {