Skip to content

Commit b25f290

Browse files
authored
feat: Set app hang timeout to 5s on Apple platforms (#416)
1 parent 115304b commit b25f290

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
- Detect when we're inside message logging to prevent SDK print operations through the Godot logger which cause runtime errors. ([#414](https://github.com/getsentry/sentry-godot/pull/414))
1313
- Relax throttling limits on app startup ([#423](https://github.com/getsentry/sentry-godot/pull/423))
14+
- Set app hang timeout to 5s on Apple platforms ([#416](https://github.com/getsentry/sentry-godot/pull/416))
1415

1516
### Dependencies
1617

src/sentry/cocoa/cocoa_sdk.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@
185185
// NOTE: This only works for captureMessage(), unfortunately.
186186
options.attachStacktrace = false;
187187

188+
options.appHangTimeoutInterval = 5; // 5 seconds
189+
188190
options.initialScope = ^(objc::SentryScope *scope) {
189191
// Add global attachments
190192
for (const String &path : p_global_attachments) {

0 commit comments

Comments
 (0)