-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add retry option for glue and fallback downloading methods #4148
Add retry option for glue and fallback downloading methods #4148
Conversation
What about this line: Line 302 in 5c48117
|
Good point. However the engine/src/resources/loader.js Line 277 in 5c48117
But I'm not sure if:
|
Possibly. @slimbuck - what do you think? |
I'd suggest making |
I agree. We want |
Thanks for this @zishiwu123 it's awesome! |
Thanks to @slimbuck for pointing out that 0 is a valid value for config.maxRetries but (config.maxRetries || defaultMaxRetries) would evaluate to false and use default value instead of 0.
@slimbuck Good catch pointing out that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥳 nice one!
Seconded. 😄 Thanks for the contribution @zishiwu123! |
Fixes #4078
Adds
maxRetries
. Consistent with: https://github.com/playcanvas/engine/blob/main/src/resources/scene-utils.js#L14.I confirm I have read the contributing guidelines and signed the Contributor License Agreement.