mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 18:37:26 +08:00
don't loop
This commit is contained in:
parent
4fd6955c5a
commit
ca98e96aea
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user