Commit 3c779b26 authored by Adrian Sutton's avatar Adrian Sutton Committed by GitHub

challenger: Close bond claimer on shutdown. (#10841)

parent 55b67e01
...@@ -281,6 +281,11 @@ func (s *Service) Stop(ctx context.Context) error { ...@@ -281,6 +281,11 @@ func (s *Service) Stop(ctx context.Context) error {
if s.monitor != nil { if s.monitor != nil {
s.monitor.StopMonitoring() s.monitor.StopMonitoring()
} }
if s.claimer != nil {
if err := s.claimer.Close(); err != nil {
result = errors.Join(result, fmt.Errorf("failed to close claimer: %w", err))
}
}
if s.faultGamesCloser != nil { if s.faultGamesCloser != nil {
s.faultGamesCloser() s.faultGamesCloser()
} }
......
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