Fix no crash

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-02-20 13:38:20 +01:00
parent 28d0d435d2
commit 091e341479

View File

@@ -95,7 +95,7 @@ func NewService(
}
func (s *Service) Run(ctx context.Context, presenterConfigFunc EmailPresenterConfigFunc) error {
g := errgroup.Group{}
g, gctx := errgroup.WithContext(ctx)
nonCancelableCtx := context.WithoutCancel(ctx)
@@ -119,7 +119,7 @@ func (s *Service) Run(ctx context.Context, presenterConfigFunc EmailPresenterCon
)
g.Go(func() error { return certWorker.Run(certWorkerCtx) })
<-ctx.Done()
<-gctx.Done()
stopSealingWorker()
stopCertWorker()