Commit cc56e4d
committed
fix: null-safe budget release in LoadAssetBundleSystem
The pooled StreamableLoadingState can be recycled (budget disposed and
nulled via the pool actionOnRelease) if the promise is forgotten or
cancelled while the detached flow is mid-await. Releasing the budget with
!. would NRE in that window, so guard with ?. to match how the budget is
treated everywhere else in the flow.1 parent bcb6b1b commit cc56e4d
1 file changed
Lines changed: 3 additions & 1 deletion
File tree
- Explorer/Assets/DCL/Infrastructure/ECS/Unity/StreamableLoading/AssetBundles
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
| |||
0 commit comments