bevy/crates/bevy_asset/src/server
Brian Reavis 7273ffcd78
Fix crash when an asset load failure event is processed after asset drop (#14123)
# Objective

This PR fixes a crash that happens when an asset failure event is
processed after the asset has already been dropped.

```
2024-07-03T17:12:16.847178Z ERROR bevy_asset::server: Encountered HTTP status 404 when loading asset
thread 'main' panicked at bevy/crates/bevy_asset/src/server/info.rs:593:18:
```

## Solution

- Update `process_asset_fail` to match the graceful behavior in
`process_asset_load` (it does not assume the state still exists).

---

## Changelog

- Fixed a rare crash that happens when an asset failed event is
processed after the asset has been dropped.
2024-07-08 00:58:55 +00:00
..
info.rs Fix crash when an asset load failure event is processed after asset drop (#14123) 2024-07-08 00:58:55 +00:00
loaders.rs Optimize common usages of AssetReader (#14082) 2024-07-01 19:59:42 +00:00
mod.rs Optimize common usages of AssetReader (#14082) 2024-07-01 19:59:42 +00:00