5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-23 07:35:39 +00:00

actually finish initializing peers

This commit is contained in:
Arceliar 2019-01-22 18:24:15 -06:00
parent 137212d8cf
commit f95663e923

View File

@ -106,10 +106,12 @@ func (intf *linkInterface) handler() error {
defer func() { recover() }()
out <- msg
}
intf.peer.linkOut = make(chan []byte, 1)
intf.peer.close = func() { intf.msgIO.close() }
go intf.peer.linkLoop()
// Start the writer
go func() {
// TODO util.PutBytes etc.
interval := 4 * time.Second
timer := time.NewTimer(interval)
clearTimer := func() {