MCPcopy Create free account
hub / github.com/GamerHack/GamerHack.github.io / uaf_ssv_with_retry

Function uaf_ssv_with_retry

g2all/900/psfree.js:776–787  ·  view source on GitHub ↗
(fsets, index, save_pop = false, maxRetries = 3)

Source from the content-addressed store, hash-verified

774
775// UAF retry wrapper for improved stability with GoldHen v2.4b18.8
776async function uaf_ssv_with_retry(fsets, index, save_pop = false, maxRetries = 3) {
777 for (let attempt = 1; attempt <= maxRetries; attempt++) {
778 try {
779 return await uaf_ssv(fsets, index, save_pop);
780 } catch (e) {
781 if (attempt === maxRetries) throw e;
782 log(`UAF attempt ${attempt}/${maxRetries} failed, retrying...`);
783 gc();
784 await sleep(100);
785 }
786 }
787}
788
789async function main() {
790 log('STAGE: UAF SSV');

Callers 1

mainFunction · 0.85

Calls 4

logFunction · 0.90
sleepFunction · 0.90
uaf_ssvFunction · 0.70
gcFunction · 0.70

Tested by

no test coverage detected