Skip to content

Commit

Permalink
fix: increase timeout to 10000 ms
Browse files Browse the repository at this point in the history
  • Loading branch information
PopGoesTheWza committed Mar 25, 2021
1 parent ad7b89a commit eeb2268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export const safeIsOnline = async (): Promise<boolean> => {
'drive.google.com',
];

const promises = urls.map(url => [url, isReachable(url)]);
const promises = urls.map<[string, Promise<boolean>]>(url => [url, isReachable(url, {timeout: 10000})]);

let allReachable = true;
for (const [url, promise] of promises) {
Expand Down

0 comments on commit eeb2268

Please sign in to comment.