comparison src/http/modules/perl/ngx_http_perl_module.c @ 2388:722b5aff05ae

use "!= NGX_OK" instead of "== NGX_ERROR"
author Igor Sysoev <igor@sysoev.ru>
date Tue, 09 Dec 2008 17:27:48 +0000
parents 2a92804f4109
children b4d8aef4a1ad
comparison
equal deleted inserted replaced
2387:7a1478c02415 2388:722b5aff05ae
283 wev->timedout = 0; 283 wev->timedout = 0;
284 ngx_http_perl_handle_request(r); 284 ngx_http_perl_handle_request(r);
285 return; 285 return;
286 } 286 }
287 287
288 if (ngx_handle_write_event(wev, 0) == NGX_ERROR) { 288 if (ngx_handle_write_event(wev, 0) != NGX_OK) {
289 ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); 289 ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);
290 } 290 }
291 } 291 }
292 292
293 293