forked from security/hakurei
Revert "internal/pipewire: work around remote sequence quirk"
This reverts commit 564db6863b.
This commit is contained in:
@@ -674,12 +674,6 @@ func (ctx *Context) consume(receiveRemaining []byte) (remaining []byte, err erro
|
|||||||
if err = header.UnmarshalBinary(remaining[:SizeHeader]); err != nil {
|
if err = header.UnmarshalBinary(remaining[:SizeHeader]); err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// remote sequence sometimes do not start with 0
|
|
||||||
if ctx.remoteSequence == 0 {
|
|
||||||
ctx.remoteSequence = header.Sequence
|
|
||||||
}
|
|
||||||
|
|
||||||
if header.Sequence != ctx.remoteSequence {
|
if header.Sequence != ctx.remoteSequence {
|
||||||
return remaining, UnexpectedSequenceError(header.Sequence)
|
return remaining, UnexpectedSequenceError(header.Sequence)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user