Mercurial > hg > nginx
diff src/mail/ngx_mail_imap_handler.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 | a59b26eee816 |
line wrap: on
line diff
--- a/src/mail/ngx_mail_imap_handler.c Tue Dec 09 17:26:42 2008 +0000 +++ b/src/mail/ngx_mail_imap_handler.c Tue Dec 09 17:27:48 2008 +0000 @@ -46,7 +46,7 @@ ngx_add_timer(c->read, cscf->timeout); - if (ngx_handle_read_event(c->read, 0) == NGX_ERROR) { + if (ngx_handle_read_event(c->read, 0) != NGX_OK) { ngx_mail_close_connection(c); }