Skip to content

Commit

Permalink
Fix unregistering after websocket loop exit
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Jan 5, 2024
1 parent 5efe78a commit 4481f07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ Loop:
}
break Loop
}
// Make sure we unregister at the end of the loop
registerCode = response.Code

p.log = p.log.With().Str("code", request.Code).Logger()
p.log.Debug().Msg("Registered provider")

Expand Down

0 comments on commit 4481f07

Please sign in to comment.