Skip to content

Commit

Permalink
challenger: Close bond claimer on shutdown. (#10841)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajsutton authored Jun 17, 2024
1 parent 55b67e0 commit 3c779b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions op-challenger/game/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,11 @@ func (s *Service) Stop(ctx context.Context) error {
if s.monitor != nil {
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 {
s.faultGamesCloser()
}
Expand Down

0 comments on commit 3c779b2

Please sign in to comment.