Skip to content

Commit

Permalink
fix(ios): Store envelopes immediately during a fatal crash (#3031)
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofwoldrich authored May 3, 2023
1 parent 9311d3b commit 3097039
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Fixes

- Store envelopes immediately during a fatal crash on iOS ([#3031](https://github.com/getsentry/sentry-react-native/pull/3031))

## 5.4.0

### Features
Expand Down
2 changes: 1 addition & 1 deletion ios/RNSentry.mm
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ - (void)setEventEnvironmentTag:(SentryEvent *)event
#if DEBUG
[PrivateSentrySDKOnly captureEnvelope:envelope];
#else
if (options[@'store']) {
if (options[@"store"]) {
// Storing to disk happens asynchronously with captureEnvelope
[PrivateSentrySDKOnly storeEnvelope:envelope];
} else {
Expand Down

0 comments on commit 3097039

Please sign in to comment.