output/snapcast/Client: use SocketDescriptor::Send()

This commit is contained in:
Max Kellermann 2023-09-27 10:39:47 +02:00
parent 21590e60e6
commit 5fbe5951ab
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ SnapcastClient::OnSocketReady(unsigned flags) noexcept
static bool
Send(SocketDescriptor s, std::span<const std::byte> buffer) noexcept
{
auto nbytes = s.Write(buffer.data(), buffer.size());
auto nbytes = s.Send(buffer);
return nbytes == ssize_t(buffer.size());
}