mirror of https://codeberg.org/pzp/pzp-net.git
Fix broken start()
This commit is contained in:
parent
833d7c1e97
commit
c8abcd0faf
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue