Browse Source

defer helps

Signed-off-by: Erik Hollensbe <github@hollensbe.org>
main
Erik Hollensbe 8 months ago
parent
commit
959542a4be
  1. 2
      sink.go

2
sink.go

@ -228,7 +228,7 @@ func run(ctx *cli.Context) error {
if os.Getenv("SINK_NO_WRITE") == "" {
wg.Add(1)
go func(msg *imap.Message, section *imap.BodySectionName) {
wg.Done()
defer wg.Done()
r := msg.GetBody(section)
_, w, err := dir.Create(nil)

Loading…
Cancel
Save