aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/perl/ngx_http_perl_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-12-09 17:27:48 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-12-09 17:27:48 +0000
commitc9aae14a7ebf75918bb383e7ee51eb9696e5a45c (patch)
tree0c871c122458a9e72449ad1baf35324c663abe93 /src/http/modules/perl/ngx_http_perl_module.c
parent04f7dbb9cd63225a85e82bc392f4c8d8ad30230b (diff)
downloadnginx-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.c2
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);
}
}