From 0d3f332d45bc80be9d4e7ff7a3a3df9b66d40c0b Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 5 Dec 2025 04:20:04 +0900 Subject: [PATCH] internal/pipewire: do not send ancillary msg without files This is unnecessary and does not match upstream behaviour. Signed-off-by: Ophestra --- internal/pipewire/pipewire.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/pipewire/pipewire.go b/internal/pipewire/pipewire.go index 2046f62..00507e8 100644 --- a/internal/pipewire/pipewire.go +++ b/internal/pipewire/pipewire.go @@ -494,7 +494,11 @@ func (ctx *Context) Roundtrip() (err error) { if err = ctx.conn.SetDeadline(time.Now().Add(connTimeout)); err != nil { return } - if _, _, err = ctx.conn.WriteMsgUnix(ctx.buf, syscall.UnixRights(ctx.pendingFiles...), nil); err != nil { + var unixRightsOob []byte + if len(ctx.pendingFiles) > 0 { + unixRightsOob = syscall.UnixRights(ctx.pendingFiles...) + } + if _, _, err = ctx.conn.WriteMsgUnix(ctx.buf, unixRightsOob, nil); err != nil { return }