diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-12-03 01:29:19 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-12-03 01:35:43 +0900 |
| commit | c34439fc5fe52db3f346131bd6398da8a69fe0bf (patch) | |
| tree | 57ae75188a59345416899c49186638e083147bc3 /internal/pipewire/securitycontext.go | |
| parent | 32fb137bb2e6eed465e94fd791abfaaab40bf674 (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.go | 7 |
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 |
