1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-29 20:43:09 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

do not use static properties

This commit is contained in:
sunnylqm
2025-04-11 18:14:57 +08:00
parent 7a8640d582
commit 4a7bb19ca1
2 changed files with 69 additions and 59 deletions

View File

@@ -62,7 +62,7 @@ const ping =
if (!pingFinished) {
log('ping timeout', url);
}
}, 2000),
}, 5000),
),
]);
};
@@ -81,6 +81,7 @@ export const testUrls = async (urls?: string[]) => {
try {
const ret = await promiseAny(urls.map(ping));
if (ret) {
log('ping success, use url:', ret);
return ret;
}
} catch {}