Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

bugfix

Jackcdf1c72e913a
diff --git a/core/internal/service/timers/timers.go b/core/internal/service/timers/timers.go
index b7afd621..0e743338 100644
--- a/core/internal/service/timers/timers.go
+++ b/core/internal/service/timers/timers.go
@@ -124,7 +124,7 @@ func Start(ctx context.Context) (err error) {
})
// fail2ban access logs detection
- gtimer.Add(800*time.Millisecond, fail2ban.NewAccessLogDetection().Start)
+ gtimer.AddOnce(800*time.Millisecond, fail2ban.NewAccessLogDetection().Start)
g.Log().Debug(ctx, "All timers started successfully")
return nil