From f95663e9230d906d30de5b53a5f80cceb150b426 Mon Sep 17 00:00:00 2001 From: Arceliar Date: Tue, 22 Jan 2019 18:24:15 -0600 Subject: [PATCH] actually finish initializing peers --- src/yggdrasil/link.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/yggdrasil/link.go b/src/yggdrasil/link.go index b53242a..ddd7db9 100644 --- a/src/yggdrasil/link.go +++ b/src/yggdrasil/link.go @@ -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() {