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() {
|
async function start() {
|
||||||
await stats.loaded()
|
await stats.loaded()
|
||||||
glue(infos, connections)
|
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() {
|
function stop() {
|
||||||
|
|
Loading…
Reference in New Issue