From 3e34c08d9b265597f4bfb546eabffd3d4e687d3d Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 5 Jan 2025 20:00:36 +0100 Subject: Run email.ServerError() in a goroutine --- src/i18n.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/i18n.go') diff --git a/src/i18n.go b/src/i18n.go index e8ad2ea..03a6951 100644 --- a/src/i18n.go +++ b/src/i18n.go @@ -244,9 +244,11 @@ func (p Printer) M(val any) string { case float64: vstr = f("%.2f", val) default: - if err := email.ServerError(badMType{"TODO"}); err != nil { - log.Print(err) - } + go func() { + if err := email.ServerError(badMType{"TODO"}); err != nil { + log.Print(err) + } + }() /* Hopefully this never happens */ vstr = "ERROR" } -- cgit v1.2.3