Commit ff8dd6f5 authored by chkuang-g's avatar chkuang-g Committed by Alex Hultman

Small fix for Epoll version of Async (#753)

* In Epoll version of Async::close(), delete itself as Async* instead of Poll*

* Star to the right
parent 91153194
......@@ -243,7 +243,7 @@ struct Async : Poll {
Poll::stop(loop);
::close(state.fd);
Poll::close(loop, [](Poll *p) {
delete p;
delete (Async *) p;
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment