diff --git a/worker/src/handles/UnixStreamSocketHandle.cpp b/worker/src/handles/UnixStreamSocketHandle.cpp index 1696cb3736..8b34b8a2ce 100644 --- a/worker/src/handles/UnixStreamSocketHandle.cpp +++ b/worker/src/handles/UnixStreamSocketHandle.cpp @@ -57,11 +57,6 @@ inline static void onClosePipe(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; @@ -69,7 +64,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(onClosePipe)); } /* Instance methods. */