diff --git a/lib/fediblock.js b/lib/fediblock.js index a4a9aee..64e3355 100644 --- a/lib/fediblock.js +++ b/lib/fediblock.js @@ -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 },