all repos — honk @ 6bde9979d654e9a8e83501d44a271bafab275bbe

my fork of honk

sometimes a thread gets weird. don't double process trees.
Ted Unangst tedu@tedunangst.com
Sun, 18 Jun 2023 21:22:21 -0400
commit

6bde9979d654e9a8e83501d44a271bafab275bbe

parent

cb740b391cef594556ca3aa86caeb2ab206d0cfb

1 files changed, 6 insertions(+), 4 deletions(-)

jump to
M web.goweb.go

@@ -1052,16 +1052,18 @@ sort.SliceStable(childs, func(i, j int) bool {

return childs[i].Honker == p.Honker && childs[j].Honker != p.Honker }) for _, h := range childs { - done[h] = true - thread = append(thread, h) - nextlevel(h) + if !done[h] { + done[h] = true + thread = append(thread, h) + nextlevel(h) + } } if levelup { level-- } } for _, h := range honks { - if h.RID == "" { + if !done[h] && h.RID == "" { done[h] = true thread = append(thread, h) nextlevel(h)