Skip to content
Snippets Groups Projects
Verified Commit 1f23de77 authored by Benny Baumann's avatar Benny Baumann
Browse files

fix: Don't recreate auto_fd object, when there's already an instance

parent 74062589
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ void async_server_socket::cb_ev(::ev::io &w, int events) {
if (events & ::ev::READ) {
// Handle incoming clients
auto ah = this->get_accept_handler();
ah(this->shared_from_this(), auto_fd(w.fd));
ah(this->shared_from_this(), this->socket);
}
if (events & ::ev::WRITE) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment