From d423ba8381df827fdd71a017d052a76fe7926a9c Mon Sep 17 00:00:00 2001 From: Rafael Soares Date: Wed, 4 Dec 2024 19:30:16 -0300 Subject: [PATCH] only stop librato after wait shutdown tolerance --- mailroom.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailroom.go b/mailroom.go index 8edae2fcf..c5ce78c51 100644 --- a/mailroom.go +++ b/mailroom.go @@ -201,12 +201,12 @@ func (mr *Mailroom) Stop() error { mr.batchForeman.Stop() mr.handlerForeman.Stop() mr.flowBatchForeman.Stop() - librato.Stop() close(mr.quit) mr.cancel() time.Sleep(time.Second * time.Duration(mr.rt.Config.ShutdownToleranceTime)) + librato.Stop() // stop our web server mr.webserver.Stop()