This commit is contained in:
parent
3d78001edf
commit
71c4299192
@ -31,15 +31,15 @@ module.exports = async (client, apex, app) => {
|
||||
}),
|
||||
signal: ac.signal,
|
||||
keepalive: false,
|
||||
timeout: 4000
|
||||
timeout: 3000
|
||||
}),
|
||||
json = await response.json()
|
||||
setImmediate(() => { ac.abort() })
|
||||
// setImmediate(() => { ac.abort() })
|
||||
return json
|
||||
} catch (e) {
|
||||
setImmediate(() => { ac.abort() })
|
||||
// setImmediate(() => { ac.abort() })
|
||||
// console.error(e)
|
||||
return
|
||||
throw e
|
||||
}
|
||||
},
|
||||
scanInstance = async instance => {
|
||||
@ -133,8 +133,7 @@ module.exports = async (client, apex, app) => {
|
||||
return
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
return
|
||||
throw e
|
||||
}
|
||||
},
|
||||
scanPart = async function* (instancesall, index) {
|
||||
|
Loading…
Reference in New Issue
Block a user