5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-14 03:20:28 +00:00

fix deadlock in conn (unsafe use of phony.Block)

This commit is contained in:
Arceliar 2020-05-23 11:11:11 -05:00
parent d0f2d889af
commit bc48e4bb80

View File

@ -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()
}