diff --git a/cmd/web/routes.go b/cmd/web/routes.go index 0ef7e5a..7699fe4 100644 --- a/cmd/web/routes.go +++ b/cmd/web/routes.go @@ -167,9 +167,11 @@ func updatePlayerAttending(name, attending string, session data.Session) error { if gmEmail := session.GMEmail(); gmEmail != "" { subject, body := session.FormatStatusUpdate(name, newAttending, "the site") e := email.NewEmail([]string{gmEmail}, []string{}, gmEmail, subject, body) - if err := email.SendEmail(e); err != nil { - log.Default().Printf("ERROR sending GM notification: %s", err) - } + go func() { + if err := email.SendEmail(e); err != nil { + log.Default().Printf("ERROR sending GM notification: %s", err) + } + }() } return nil }