Skip to content

Commit

Permalink
fix: Fix Set Backoff Method (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonStalnaker authored Oct 27, 2023
1 parent 8adc405 commit e7e26c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mParticleCore.brs
Original file line number Diff line number Diff line change
Expand Up @@ -1205,10 +1205,10 @@ function mParticleStart(options as object, messagePort as object)
m.uploadQueue.unshift(transfer.batch)
for each header in headers
if (header["Retry-After"] <> invalid) then
backoff = header["Retry-After"]
backoff = parsejson(header["Retry-After"])
end if
end for
if (backoff <> invalid) then
if (backoff <> invalid and backoff > 0) then
m.mpBackoff.setBackoff(backoff)
else
m.mpBackoff.increase()
Expand Down

0 comments on commit e7e26c9

Please sign in to comment.