Fix broken start()

This commit is contained in:
Jacob Karlsson 2024-05-14 19:53:20 +02:00
parent 833d7c1e97
commit c8abcd0faf
1 changed files with 3 additions and 1 deletions

View File

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