Commit 3b3615f0 authored by Stan Hu's avatar Stan Hu

Guard against nil Sidekiq metrics server

Closes #41351
parent 11bf575f
......@@ -23,7 +23,7 @@ module Gitlab
end
def stop_working
server.shutdown
server.shutdown if server
@server = nil
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment