From f95d56d1ebbaf772d454904eb9e25ac89a42a691 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Tue, 17 Jan 2023 08:15:53 +0100 Subject: [PATCH] Fixed wrong type in uv_walk --- src/tcp_server.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tcp_server.inl b/src/tcp_server.inl index e82d4d2..fcf51b9 100644 --- a/src/tcp_server.inl +++ b/src/tcp_server.inl @@ -810,7 +810,7 @@ void TCPServer::on_shutdown(uv_async_t* async) delete GetLoopUserData(&s->m_loop, false); s->m_numHandles = 0; - uv_walk(&s->m_loop, [](uv_handle_t*, void* n) { (*reinterpret_cast(n))++; }, &s->m_numHandles); + uv_walk(&s->m_loop, [](uv_handle_t*, void* n) { (*reinterpret_cast(n))++; }, &s->m_numHandles); uv_prepare_init(&s->m_loop, &s->m_shutdownPrepare); s->m_shutdownPrepare.data = s; @@ -843,7 +843,7 @@ void TCPServer::on_shutdown(uv_async_t* async) TCPServer* s = reinterpret_cast(h->data); s->m_numHandles = 0; - uv_walk(&s->m_loop, [](uv_handle_t*, void* n) { (*reinterpret_cast(n))++; }, &s->m_numHandles); + uv_walk(&s->m_loop, [](uv_handle_t*, void* n) { (*reinterpret_cast(n))++; }, &s->m_numHandles); if (s->m_numHandles > 2) { // Don't count m_shutdownTimer and m_shutdownPrepare