mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-16 12:11:39 +08:00
fix testurls
This commit is contained in:
@@ -42,16 +42,16 @@ const ping =
|
||||
return url;
|
||||
}
|
||||
logger('ping failed', url, status, statusText);
|
||||
return null;
|
||||
throw new Error('Ping failed');
|
||||
})
|
||||
.catch((e) => {
|
||||
pingFinished = true;
|
||||
logger('ping error', url, e);
|
||||
return null;
|
||||
throw e;
|
||||
}),
|
||||
new Promise((r) =>
|
||||
new Promise((_, reject) =>
|
||||
setTimeout(() => {
|
||||
r(null);
|
||||
reject(new Error('Ping timeout'));
|
||||
if (!pingFinished) {
|
||||
logger('ping timeout', url);
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-native-update",
|
||||
"version": "9.2.3",
|
||||
"version": "9.2.4",
|
||||
"description": "react-native hot update",
|
||||
"main": "lib/index.ts",
|
||||
"scripts": {
|
||||
|
Reference in New Issue
Block a user