4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-07-13 17:36:28 +00:00

fix actor EnqueueFrom stack overflow (use nil now to send from self) and replace session send/recv workers with actor functions

This commit is contained in:
Arceliar
2019-08-23 22:23:01 -05:00
parent 436c84ca33
commit 533da351f9
7 changed files with 132 additions and 17 deletions

View File

@ -210,7 +210,7 @@ func (p *peer) linkLoop() {
case dinfo = <-p.dinfo:
case _ = <-tick.C:
if dinfo != nil {
p.core.router.insertPeer(&p.core.router, dinfo)
p.core.router.insertPeer(nil, dinfo)
}
}
}