M activity.go +1 -1
@@ 1674,6 1674,7 @@ func boxuprcpts(user *WhatAbout, address
}
wg.Add(1)
go func() {
+ defer wg.Done()
box, _ := boxofboxes.Get(a)
mtx.Lock()
if box != nil && useshared && box.Shared != "" {
@@ 1682,7 1683,6 @@ func boxuprcpts(user *WhatAbout, address
rcpts[a] = true
}
mtx.Unlock()
- wg.Done()
}()
}
wg.Wait()
M fun.go +1 -1
@@ 91,6 91,7 @@ func reverbolate(userid UserID, honks []
}
handlers.Add(1)
go func() {
+ defer handlers.Done()
h.Username, h.Handle = handles(h.Honker)
if !local {
short := shortname(userid, h.Honker)
@@ 128,7 129,6 @@ func reverbolate(userid UserID, honks []
if h.Oonker != "" {
_, h.Oondle = handles(h.Oonker)
}
- handlers.Done()
}()
h.Precis = demoji(h.Precis)
h.Noise = demoji(h.Noise)