output/snapcast/Client: use SocketDescriptor::Send()
This commit is contained in:
parent
21590e60e6
commit
5fbe5951ab
|
@ -97,7 +97,7 @@ SnapcastClient::OnSocketReady(unsigned flags) noexcept
|
||||||
static bool
|
static bool
|
||||||
Send(SocketDescriptor s, std::span<const std::byte> buffer) noexcept
|
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());
|
return nbytes == ssize_t(buffer.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue