comparison 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
comparison
equal deleted inserted replaced
2387:7a1478c02415 2388:722b5aff05ae
44 44
45 c->read->handler = ngx_mail_imap_init_protocol; 45 c->read->handler = ngx_mail_imap_init_protocol;
46 46
47 ngx_add_timer(c->read, cscf->timeout); 47 ngx_add_timer(c->read, cscf->timeout);
48 48
49 if (ngx_handle_read_event(c->read, 0) == NGX_ERROR) { 49 if (ngx_handle_read_event(c->read, 0) != NGX_OK) {
50 ngx_mail_close_connection(c); 50 ngx_mail_close_connection(c);
51 } 51 }
52 52
53 ngx_mail_send(c->write); 53 ngx_mail_send(c->write);
54 } 54 }