mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-13 00:30:28 +00:00
actually finish initializing peers
This commit is contained in:
parent
137212d8cf
commit
f95663e923
@ -106,10 +106,12 @@ func (intf *linkInterface) handler() error {
|
|||||||
defer func() { recover() }()
|
defer func() { recover() }()
|
||||||
out <- msg
|
out <- msg
|
||||||
}
|
}
|
||||||
|
intf.peer.linkOut = make(chan []byte, 1)
|
||||||
intf.peer.close = func() { intf.msgIO.close() }
|
intf.peer.close = func() { intf.msgIO.close() }
|
||||||
go intf.peer.linkLoop()
|
go intf.peer.linkLoop()
|
||||||
// Start the writer
|
// Start the writer
|
||||||
go func() {
|
go func() {
|
||||||
|
// TODO util.PutBytes etc.
|
||||||
interval := 4 * time.Second
|
interval := 4 * time.Second
|
||||||
timer := time.NewTimer(interval)
|
timer := time.NewTimer(interval)
|
||||||
clearTimer := func() {
|
clearTimer := func() {
|
||||||
|
Loading…
Reference in New Issue
Block a user