From 5fbe5951ab3049405cdf91dec669fa53e62118d3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 27 Sep 2023 10:39:47 +0200 Subject: [PATCH] output/snapcast/Client: use SocketDescriptor::Send() --- src/output/plugins/snapcast/Client.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/plugins/snapcast/Client.cxx b/src/output/plugins/snapcast/Client.cxx index 98207a208..805cc6784 100644 --- a/src/output/plugins/snapcast/Client.cxx +++ b/src/output/plugins/snapcast/Client.cxx @@ -97,7 +97,7 @@ SnapcastClient::OnSocketReady(unsigned flags) noexcept static bool Send(SocketDescriptor s, std::span buffer) noexcept { - auto nbytes = s.Write(buffer.data(), buffer.size()); + auto nbytes = s.Send(buffer); return nbytes == ssize_t(buffer.size()); }