don't loop

This commit is contained in:
Cassandra Heart 2024-10-25 13:32:34 -05:00
parent 4fd6955c5a
commit ca98e96aea
No known key found for this signature in database
GPG Key ID: 6352152859385958

View File

@ -535,6 +535,7 @@ func (d *DataTimeReel) processPending(
panic(err)
}
found := false
for _, rawFrame := range rawFrames {
if !bytes.Equal(rawFrame.ParentSelector, selector) {
continue
@ -559,6 +560,11 @@ func (d *DataTimeReel) processPending(
// Otherwise set it as the next and process all pending
d.setHead(rawFrame, distance)
found = true
break
}
if !found {
break
}
}