aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pipewire/securitycontext.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-12-03 01:29:19 +0900
committerOphestra <cat@gensokyo.uk>2025-12-03 01:35:43 +0900
commitc34439fc5fe52db3f346131bd6398da8a69fe0bf (patch)
tree57ae75188a59345416899c49186638e083147bc3 /internal/pipewire/securitycontext.go
parent32fb137bb2e6eed465e94fd791abfaaab40bf674 (diff)
internal/pipewire: collect non-protocol errors
These errors are recoverable and should not terminate event handling. Only terminate event handling for protocol errors or inconsistent state that makes further event handling impossible. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pipewire/securitycontext.go')
-rw-r--r--internal/pipewire/securitycontext.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/internal/pipewire/securitycontext.go b/internal/pipewire/securitycontext.go
index 958673e3..42eb16cd 100644
--- a/internal/pipewire/securitycontext.go
+++ b/internal/pipewire/securitycontext.go
@@ -104,11 +104,8 @@ func (securityContext *SecurityContext) Create(listenFd, closeFd int, props SPAD
)
}
-func (securityContext *SecurityContext) consume(opcode byte, files []int, _ func(v any) error) error {
- if err := closeReceivedFiles(files...); err != nil {
- return err
- }
-
+func (securityContext *SecurityContext) consume(opcode byte, files []int, _ func(v any)) error {
+ closeReceivedFiles(files...)
switch opcode {
// SecurityContext does not receive any events