Commit ab915eb
fix(core): Guard against nil SPI result on iOS and leaked listener on Android
- iOS: Add nil check on getFramesDelaySPI result before accessing
delayDuration (messaging nil returns 0 in ObjC, causing false
frames.delay: 0)
- Android: Call stop() before start() in RNSentryFrameDelayCollector
to prevent leaked listeners on repeated initialization (e.g. JS
bundle reload)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 40181ed commit ab915eb
2 files changed
Lines changed: 2 additions & 1 deletion
File tree
- packages/core
- android/src/main/java/io/sentry/react
- ios
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
575 | | - | |
| 575 | + | |
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
| |||
0 commit comments