Skip to content

Commit

Permalink
Small fix for Epoll version of Async (uNetworking#753)
Browse files Browse the repository at this point in the history
* In Epoll version of Async::close(), delete itself as Async* instead of Poll*

* Star to the right
  • Loading branch information
chkuang-g authored and Alex Hultman committed Jan 21, 2018
1 parent 9115319 commit ff8dd6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Epoll.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ struct Async : Poll {
Poll::stop(loop);
::close(state.fd);
Poll::close(loop, [](Poll *p) {
delete p;
delete (Async *) p;
});
}

Expand Down

0 comments on commit ff8dd6f

Please sign in to comment.