Skip to content

Commit cb8d125

Browse files
jpnurmiclaude
andcommitted
fix(core): check http_retry option instead of transport capability
cleanup_cache was gated on sentry__transport_can_retry, which checks for retry_func. Since retry_func is unconditionally set for all HTTP transports, this ran cleanup_cache even with http_retry disabled. Check the option directly instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c6d1418 commit cb8d125

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/sentry_core.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,7 @@ sentry_init(sentry_options_t *options)
290290
backend->prune_database_func(backend);
291291
}
292292

293-
if (options->cache_keep
294-
|| sentry__transport_can_retry(options->transport)) {
293+
if (options->cache_keep || options->http_retry) {
295294
sentry__cleanup_cache(options);
296295
}
297296

0 commit comments

Comments
 (0)