diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-12-09 17:27:48 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-12-09 17:27:48 +0000 |
commit | c9aae14a7ebf75918bb383e7ee51eb9696e5a45c (patch) | |
tree | 0c871c122458a9e72449ad1baf35324c663abe93 /src/http/modules/perl/ngx_http_perl_module.c | |
parent | 04f7dbb9cd63225a85e82bc392f4c8d8ad30230b (diff) | |
download | nginx-c9aae14a7ebf75918bb383e7ee51eb9696e5a45c.tar.gz nginx-c9aae14a7ebf75918bb383e7ee51eb9696e5a45c.zip |
use "!= NGX_OK" instead of "== NGX_ERROR"
Diffstat (limited to 'src/http/modules/perl/ngx_http_perl_module.c')
-rw-r--r-- | src/http/modules/perl/ngx_http_perl_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/perl/ngx_http_perl_module.c b/src/http/modules/perl/ngx_http_perl_module.c index 262794256..bad2454ee 100644 --- a/src/http/modules/perl/ngx_http_perl_module.c +++ b/src/http/modules/perl/ngx_http_perl_module.c @@ -285,7 +285,7 @@ ngx_http_perl_sleep_handler(ngx_http_request_t *r) return; } - if (ngx_handle_write_event(wev, 0) == NGX_ERROR) { + if (ngx_handle_write_event(wev, 0) != NGX_OK) { ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); } } |