From 13f1c8eccadb272daedaf3a848d3b03654f02825 Mon Sep 17 00:00:00 2001 From: pigeatgarlic <64737125+pigeatgarlic@users.noreply.github.com> Date: Thu, 13 Feb 2025 02:01:34 +0000 Subject: [PATCH] fix udp client --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index f1245c15..24ee2989 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -58,8 +58,8 @@ on_signal(int sig, FN &&fn) { template class UDPClient { public: - UDPClient(FN &&handler) { - bufhandler = std::forward(handler); + UDPClient(FN handler) { + bufhandler = handler; } void Bind(udp::endpoint _remote_endpoint) {