diff options
Diffstat (limited to 'lib/gitlab/metrics/sidekiq_metrics_exporter.rb')
-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 71a5406815f..c2b0b230f4d 100644 --- a/lib/gitlab/metrics/sidekiq_metrics_exporter.rb +++ b/lib/gitlab/metrics/sidekiq_metrics_exporter.rb @@ -33,7 +33,7 @@ module Gitlab end def stop_working - server.shutdown if server + server&.shutdown @server = nil end |