From 0539dee900342a9fad784e83bea51f32459cba9f Mon Sep 17 00:00:00 2001 From: Arceliar Date: Sat, 24 Aug 2019 13:25:38 -0500 Subject: [PATCH] warning about possible deadlock in legacy channel send, need to migrate the link code to fix it --- src/yggdrasil/peer.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/yggdrasil/peer.go b/src/yggdrasil/peer.go index c94cf26..f3af140 100644 --- a/src/yggdrasil/peer.go +++ b/src/yggdrasil/peer.go @@ -278,6 +278,8 @@ func (p *peer) _sendLinkPacket(packet []byte) { Payload: bs, } packet = linkPacket.encode() + // TODO replace this with a message send if/when the link becomes an actor + // FIXME not 100% sure the channel send version is deadlock-free... p.linkOut <- packet }