setImmediate out
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
ale 2024-09-29 10:09:12 +02:00
parent ddfd30d157
commit 2430ddcb8c

View File

@ -19,7 +19,7 @@ module.exports = async (client, apex, app) => {
requestPart = async uri => {
const ac = new AbortController(),
timeout = setTimeout(() => {
setImmediate(ac.abort())
ac.abort()
}, constant.abort_timeout),
response = await fetch(uri, {
headers: { 'User-Agent': constant.agent },