diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-12-11 04:22:03 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-12-11 04:22:03 +0900 |
| commit | e60ff660f69ee4161ee63af3147b5a77d4139e76 (patch) | |
| tree | da0d24eb3782859234e6ec91ff20eef71d0f0722 /internal/pipewire/client.go | |
| parent | 47db461546f355b971c3ca35d4dec48778c172ab (diff) | |
internal/pipewire: treat unknown opcode as fatal
Skipping events can cause local state to diverge from the server.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pipewire/client.go')
| -rw-r--r-- | internal/pipewire/client.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/pipewire/client.go b/internal/pipewire/client.go index faa114b9..662a24a4 100644 --- a/internal/pipewire/client.go +++ b/internal/pipewire/client.go @@ -113,7 +113,7 @@ func (client *Client) consume(opcode byte, files []int, unmarshal func(v any)) e return nil default: - return &UnsupportedOpcodeError{opcode, client.String()} + panic(&UnsupportedOpcodeError{opcode, client.String()}) } } |
