From 2430ddcb8c3cb38e75f9818608512da5865c7f5c Mon Sep 17 00:00:00 2001 From: ale Date: Sun, 29 Sep 2024 10:09:12 +0200 Subject: [PATCH] setImmediate out --- lib/fediblock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 },