mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-07-01 03:56:17 +00:00
more debugging
This commit is contained in:
@ -183,8 +183,10 @@ func (p *peer) linkLoop() {
|
||||
}
|
||||
p.sendSwitchMsg()
|
||||
case _ = <-tick.C:
|
||||
if p.dinfo != nil {
|
||||
p.core.dht.peers <- p.dinfo
|
||||
pdinfo := p.dinfo // FIXME this is a bad workarond NPE on the next line
|
||||
if pdinfo != nil {
|
||||
dinfo := *pdinfo
|
||||
p.core.dht.peers <- &dinfo
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user