diff --git a/logtail/logtail.go b/logtail/logtail.go index 9eaa32a94..9df164273 100644 --- a/logtail/logtail.go +++ b/logtail/logtail.go @@ -266,6 +266,7 @@ func (l *Logger) Shutdown(ctx context.Context) error { case <-l.shutdownDone: } close(done) + l.httpc.CloseIdleConnections() }() l.shutdownStartMu.Lock()