From 3b3615f0b78d728b9b3fa15971e4f597a9e3cb1d Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Tue, 20 Feb 2018 21:46:25 -0800 Subject: Guard against nil Sidekiq metrics server Closes #41351 --- lib/gitlab/metrics/sidekiq_metrics_exporter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1