aboutsummaryrefslogtreecommitdiff
path: root/pkg/atlas
diff options
context:
space:
mode:
authorpg9182 <96569817+pg9182@users.noreply.github.com>2022-11-19 23:04:07 -0500
committerpg9182 <96569817+pg9182@users.noreply.github.com>2022-11-19 23:04:07 -0500
commit5603d023f9bb87d4de3e469129b4607d498348e0 (patch)
treef115845e4f5cff5e5196e30b0c3af03925fc58b2 /pkg/atlas
parentdc836bc1825859aa6802848f3c493d17dc82358c (diff)
downloadAtlas-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')
-rw-r--r--pkg/atlas/server.go4
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()
+ }
}
}