diff --git a/worker/src/handles/TcpConnectionHandle.cpp b/worker/src/handles/TcpConnectionHandle.cpp index 5a7c39ba30..475a078ad0 100644 --- a/worker/src/handles/TcpConnectionHandle.cpp +++ b/worker/src/handles/TcpConnectionHandle.cpp @@ -56,11 +56,6 @@ inline static void onCloseTcp(uv_handle_t* handle) delete reinterpret_cast(handle); } -inline static void onCloseShutdown(uv_handle_t* handle) -{ - delete reinterpret_cast(handle); -} - inline static void onShutdown(uv_shutdown_t* req, int /*status*/) { auto* handle = req->handle; @@ -68,7 +63,7 @@ inline static void onShutdown(uv_shutdown_t* req, int /*status*/) delete req; // Now do close the handle. - uv_close(reinterpret_cast(handle), static_cast(onCloseShutdown)); + uv_close(reinterpret_cast(handle), static_cast(onCloseTcp)); } /* Instance methods. */