From c8abcd0fafff82747d3e0b4029bcfd1a49d4ca77 Mon Sep 17 00:00:00 2001 From: Jacob Karlsson Date: Tue, 14 May 2024 19:53:20 +0200 Subject: [PATCH] Fix broken start() --- lib/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 3181770..e49448f 100644 --- a/lib/index.js +++ b/lib/index.js @@ -91,7 +91,9 @@ function initNet(peer, config) { async function start() { await stats.loaded() glue(infos, connections) - queueMicrotask(() => scheduler.start.bind(scheduler)) + queueMicrotask(() => scheduler.start.bind(scheduler)((err) => { + if (err) console.error("pzp-net scheduler start failed:", err) + })) } function stop() {