diff options
author | Stan Hu <stanhu@gmail.com> | 2018-02-20 21:46:25 -0800 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-02-20 21:47:55 -0800 |
commit | 3b3615f0b78d728b9b3fa15971e4f597a9e3cb1d (patch) | |
tree | 8772a11aef298323b7a2936d6ce1a1b082a4361a | |
parent | 11bf575fe64e55cc932c5629e2d8d103109e0b2b (diff) | |
download | gitlab-ce-3b3615f0b78d728b9b3fa15971e4f597a9e3cb1d.tar.gz |
Guard against nil Sidekiq metrics serversh-guard-against-nil-sidekiq-metrics-server
Closes #41351
-rw-r--r-- | lib/gitlab/metrics/sidekiq_metrics_exporter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/metrics/sidekiq_metrics_exporter.rb b/lib/gitlab/metrics/sidekiq_metrics_exporter.rb index 5980a4ded2b..db8bdde74b2 100644 --- a/lib/gitlab/metrics/sidekiq_metrics_exporter.rb +++ b/lib/gitlab/metrics/sidekiq_metrics_exporter.rb @@ -23,7 +23,7 @@ module Gitlab end def stop_working - server.shutdown + server.shutdown if server @server = nil end |