johanhelsing / bevy_web_asset

Bevy asset loader that transparently supports loading over http(s)
Apache License 2.0
71 stars 17 forks source link

Warn and retry when the server can't be reached #6

Open johanhelsing opened 1 year ago

johanhelsing commented 1 year ago

When the user has a poor connection and the server can't be reached, we just warn and report the asset as AssetIoError::NotFound.

However, it probably makes sense to retry if we couldn't reach the server.

We should probably add a loop inside WebAssetIo::load_path to retry in those cases.

Split from: #4