From 5603d023f9bb87d4de3e469129b4607d498348e0 Mon Sep 17 00:00:00 2001 From: pg9182 <96569817+pg9182@users.noreply.github.com> Date: Sat, 19 Nov 2022 23:04:07 -0500 Subject: pkg/atlas: Fix reload when file logging is disabled Don't call nil reload functions. --- pkg/atlas/server.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pkg/atlas') diff --git a/pkg/atlas/server.go b/pkg/atlas/server.go index 487d9b6..3978911 100644 --- a/pkg/atlas/server.go +++ b/pkg/atlas/server.go @@ -716,7 +716,9 @@ func (s *Server) HandleSIGHUP() { defer s.sdnotify("READY=1") for _, fn := range s.reload { - fn() + if fn != nil { + fn() + } } } -- cgit v1.2.3