sometimes a thread gets weird. don't double process trees.
Ted Unangst tedu@tedunangst.com
Sun, 18 Jun 2023 21:22:21 -0400
1 files changed,
6 insertions(+),
4 deletions(-)
jump to
M
web.go
→
web.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)