Skip to content

Commit

Permalink
Return to updateControlMapState upon a recently expired map
Browse files Browse the repository at this point in the history
Changelog: None
Signed-off-by: Ole Petter <[email protected]>
  • Loading branch information
oleorhagen committed Jun 28, 2021
1 parent 71763ad commit c2fb4e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -2032,7 +2032,7 @@ func (c *controlMapPauseState) Handle(ctx *StateContext, controller Controller)

if errors.Is(err, NoUpdateMapsErr) {
log.Error("No control maps no longer present, continuing")
nextMapRefresh = time.Now().Add(30 * time.Second)
return NewControlMapState(c.wrappedState), false
}

updateMapFromServerIn := nextMapRefresh.Sub(time.Now())
Expand Down

0 comments on commit c2fb4e5

Please sign in to comment.