diff options
author | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-11-19 23:04:07 -0500 |
---|---|---|
committer | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-11-19 23:04:07 -0500 |
commit | 5603d023f9bb87d4de3e469129b4607d498348e0 (patch) | |
tree | f115845e4f5cff5e5196e30b0c3af03925fc58b2 /pkg/atlas/server.go | |
parent | dc836bc1825859aa6802848f3c493d17dc82358c (diff) | |
download | Atlas-5603d023f9bb87d4de3e469129b4607d498348e0.tar.gz Atlas-5603d023f9bb87d4de3e469129b4607d498348e0.zip |
pkg/atlas: Fix reload when file logging is disabled
Don't call nil reload functions.
Diffstat (limited to 'pkg/atlas/server.go')
-rw-r--r-- | pkg/atlas/server.go | 4 |
1 files changed, 3 insertions, 1 deletions
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() + } } } |