diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-07 15:06:18 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-07 15:06:18 +0300 |
commit | 185f428fa5e6123ffa0f29e307523da138e7b028 (patch) | |
tree | 1d5bb1d4700c0953aed2ad0e5d3515cc7935e550 /lib/gitlab/metrics/exporter | |
parent | ab2382923e7a864a3fa27fdf8eeb9b21893b9147 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/metrics/exporter')
-rw-r--r-- | lib/gitlab/metrics/exporter/base_exporter.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/metrics/exporter/base_exporter.rb b/lib/gitlab/metrics/exporter/base_exporter.rb index 108d1330b47..de7870dfb8c 100644 --- a/lib/gitlab/metrics/exporter/base_exporter.rb +++ b/lib/gitlab/metrics/exporter/base_exporter.rb @@ -36,10 +36,11 @@ module Gitlab end def stop_working - if server # rubocop:disable Cop/LineBreakAroundConditionalBlock + if server server.shutdown server.listeners.each(&:close) end + @server = nil end |