Reuse iohandle_clear_error

This commit is contained in:
Tony Garnock-Jones 2011-01-02 13:40:22 -05:00
parent 114d8191df
commit 42864f2007
1 changed files with 1 additions and 2 deletions

View File

@ -181,8 +181,7 @@ IOHandle *new_iohandle(int fd) {
(everrorcb) error_isr,
h);
PCHECK(h->io, "bufferevent_new");
h->error_direction = 0;
h->error_kind = 0;
iohandle_clear_error(h);
return h;
}