1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-16 07:01:38 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
sunnylqm
2025-04-10 12:05:18 +08:00
parent ac217f659f
commit 7d76034415
3 changed files with 7 additions and 14815 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -77,10 +77,13 @@ export const testUrls = async (urls?: string[]) => {
if (!urls?.length) {
return null;
}
const ret = await promiseAny(urls.map(ping));
if (ret) {
return ret;
}
try {
const ret = await promiseAny(urls.map(ping));
if (ret) {
return ret;
}
} catch {}
log('all ping failed, use first url:', urls[0]);
return urls[0];
};