From bc48e4bb809aa875caabf711a58acf7911e81c24 Mon Sep 17 00:00:00 2001 From: Arceliar Date: Sat, 23 May 2020 11:11:11 -0500 Subject: [PATCH] fix deadlock in conn (unsafe use of phony.Block) --- src/yggdrasil/conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yggdrasil/conn.go b/src/yggdrasil/conn.go index eef5768..a217d88 100644 --- a/src/yggdrasil/conn.go +++ b/src/yggdrasil/conn.go @@ -153,7 +153,7 @@ func (c *Conn) doSearch() { // Nothing was found, so create a new search searchCompleted := func(sinfo *sessionInfo, e error) {} sinfo = c.core.router.searches.newIterSearch(c.nodeID, c.nodeMask, searchCompleted) - c.core.log.Debugf("%s DHT search started: %p", c.String(), sinfo) + c.core.log.Debugf("%s DHT search started: %p", fmt.Sprintf("conn=%p", c), sinfo) // Start the search sinfo.startSearch() }