Skip to content

Commit

Permalink
MG: fix deadlock (#18177)
Browse files Browse the repository at this point in the history
with status "running".
  • Loading branch information
kscholty authored Jan 11, 2025
1 parent f469be6 commit 3dab055
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vehicle/saic/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ func (v *API) repeatRequest(path string, event_id string) {
count++
}

// Make sure that we don't exit here with status running (probably after 20 tries).
// This would not allow us to ever do a query again.
if v.request.Status == StatRunning {
v.request.Status = StatInvalid
}
v.Logger.DEBUG.Printf("Exiting repeated query. Count: %d\n", count)
}

Expand Down

0 comments on commit 3dab055

Please sign in to comment.