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() {