Commit 5d860c9
committed
Fix race: let RYW-aware IAM fetches bypass the rate limiter
When resolveConditionsWithID resolves a stale IamFetchReadyCondition("")
with null before the onModelUpdated coroutine registers its condition,
the null-rywData fetch wins the rate limiter and blocks the subsequent
RYW-consistent fetch for 30s. Skip the rate-limit check when rywData is
non-null so the RYW fetch always proceeds.
Made-with: Cursor1 parent 86b6c36 commit 5d860c9
1 file changed
Lines changed: 1 addition & 2 deletions
File tree
- OneSignalSDK/onesignal/in-app-messages/src/main/java/com/onesignal/inAppMessages/internal
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
300 | 299 | | |
301 | 300 | | |
302 | 301 | | |
| |||
321 | 320 | | |
322 | 321 | | |
323 | 322 | | |
324 | | - | |
| 323 | + | |
325 | 324 | | |
326 | 325 | | |
327 | 326 | | |
| |||
0 commit comments