summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/main.cpp b/server/src/main.cpp
index fa85f78..eff56e0 100644
--- a/server/src/main.cpp
+++ b/server/src/main.cpp
@@ -142,7 +142,8 @@ auto sd_notify(std::string_view msg) -> net::awaitable<void>
142 auto sock = net::local::datagram_protocol::socket{ 142 auto sock = net::local::datagram_protocol::socket{
143 co_await net::this_coro::executor 143 co_await net::this_coro::executor
144 }; 144 };
145 co_await sock.async_send_to(net::buffer(msg), endpoint); 145 co_await sock.async_connect(endpoint);
146 co_await sock.async_send(net::buffer(msg));
146 } 147 }
147 catch (std::exception const& e) 148 catch (std::exception const& e)
148 { 149 {