Skip to content

Commit 60f836c

Browse files
jpnurmiclaude
andcommitted
fix(retry): guard against unsigned underflow in backoff check
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 427e4f8 commit 60f836c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry_retry.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ sentry__retry_send(sentry_retry_t *retry, uint64_t before,
208208
continue;
209209
}
210210
total++;
211-
if (!before && (now - ts) < sentry__retry_backoff(count)) {
211+
if (!before && now >= ts && (now - ts) < sentry__retry_backoff(count)) {
212212
continue;
213213
}
214214
if (eligible == path_cap) {

0 commit comments

Comments
 (0)