Skip to content
Browse files

Removed surplus condition.

  • Loading branch information...
1 parent 3e5bb0a commit f981f65b9d94614e0eb6acefb8761644cb751150 vbart committed Apr 27, 2012
Showing with 4 additions and 8 deletions.
  1. +4 −8 src/http/ngx_http_request.c
View
12 src/http/ngx_http_request.c
@@ -2001,14 +2001,6 @@ ngx_http_finalize_request(ngx_http_request_t *r, ngx_int_t rc)
return;
}
-#if (NGX_DEBUG)
- if (r != c->data) {
- ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0,
- "http finalize non-active request: \"%V?%V\"",
- &r->uri, &r->args);
- }
-#endif
-
pr = r->parent;
if (r == c->data) {
@@ -2042,6 +2034,10 @@ ngx_http_finalize_request(ngx_http_request_t *r, ngx_int_t rc)
} else {
+ ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0,
+ "http finalize non-active request: \"%V?%V\"",
+ &r->uri, &r->args);
+
r->write_event_handler = ngx_http_request_finalizer;
if (r->waited) {

0 comments on commit f981f65

Please sign in to comment.
Something went wrong with that request. Please try again.