From e60ff660f69ee4161ee63af3147b5a77d4139e76 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 11 Dec 2025 04:22:03 +0900 Subject: internal/pipewire: treat unknown opcode as fatal Skipping events can cause local state to diverge from the server. Signed-off-by: Ophestra --- internal/pipewire/securitycontext.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/pipewire/securitycontext.go') diff --git a/internal/pipewire/securitycontext.go b/internal/pipewire/securitycontext.go index c50665bf..dbc3c529 100644 --- a/internal/pipewire/securitycontext.go +++ b/internal/pipewire/securitycontext.go @@ -190,7 +190,7 @@ func (securityContext *SecurityContext) consume(opcode byte, files []int, _ func // SecurityContext does not receive any events default: - return &UnsupportedOpcodeError{opcode, securityContext.String()} + panic(&UnsupportedOpcodeError{opcode, securityContext.String()}) } } -- cgit v1.3.1