Mercurial > hg > nginx-quic
comparison src/mail/ngx_mail_pop3_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 |
comparison
equal
deleted
inserted
replaced
2387:7a1478c02415 | 2388:722b5aff05ae |
---|---|
65 | 65 |
66 c->read->handler = ngx_mail_pop3_init_protocol; | 66 c->read->handler = ngx_mail_pop3_init_protocol; |
67 | 67 |
68 ngx_add_timer(c->read, cscf->timeout); | 68 ngx_add_timer(c->read, cscf->timeout); |
69 | 69 |
70 if (ngx_handle_read_event(c->read, 0) == NGX_ERROR) { | 70 if (ngx_handle_read_event(c->read, 0) != NGX_OK) { |
71 ngx_mail_close_connection(c); | 71 ngx_mail_close_connection(c); |
72 } | 72 } |
73 | 73 |
74 ngx_mail_send(c->write); | 74 ngx_mail_send(c->write); |
75 } | 75 } |