diff --git a/src/tcp_server.inl b/src/tcp_server.inl index 24c4dfd..582bf5b 100644 --- a/src/tcp_server.inl +++ b/src/tcp_server.inl @@ -824,7 +824,7 @@ void TCPServer::Client::close() uv_tcp_t* s = &m_socket; uv_handle_t* h = reinterpret_cast(s); if (!uv_is_closing(h)) { - uv_close(h, on_connection_close); + uv_tcp_close_reset(s, on_connection_close); } }