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/mail/ngx_mail_imap_handler.c | |
parent | 04f7dbb9cd63225a85e82bc392f4c8d8ad30230b (diff) | |
download | nginx-c9aae14a7ebf75918bb383e7ee51eb9696e5a45c.tar.gz nginx-c9aae14a7ebf75918bb383e7ee51eb9696e5a45c.zip |
use "!= NGX_OK" instead of "== NGX_ERROR"
Diffstat (limited to 'src/mail/ngx_mail_imap_handler.c')
-rw-r--r-- | src/mail/ngx_mail_imap_handler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mail/ngx_mail_imap_handler.c b/src/mail/ngx_mail_imap_handler.c index f8ca4f689..780c38fbb 100644 --- a/src/mail/ngx_mail_imap_handler.c +++ b/src/mail/ngx_mail_imap_handler.c @@ -46,7 +46,7 @@ ngx_mail_imap_init_session(ngx_mail_session_t *s, ngx_connection_t *c) 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); } |