From fe94f0d33c74cf41e2f15c20931d11c9e3556bc0 Mon Sep 17 00:00:00 2001 From: ale Date: Sun, 10 Nov 2024 11:53:58 +0100 Subject: [PATCH] return await --- lib/fediblock.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/fediblock.js b/lib/fediblock.js index 0dcd7e9..08ec5ab 100644 --- a/lib/fediblock.js +++ b/lib/fediblock.js @@ -35,10 +35,11 @@ module.exports = async (client, apex, app) => { setImmediate(() => clearTimeout(timeout)) return await response.json() } catch (e) { - return setImmediate(() => { + setImmediate(() => { clearTimeout(timeout) ac.abort() }) + return // console.error(e) } },