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 // Nothing was found, so create a new search
searchCompleted := func(sinfo *sessionInfo, e error) {} searchCompleted := func(sinfo *sessionInfo, e error) {}
sinfo = c.core.router.searches.newIterSearch(c.nodeID, c.nodeMask, searchCompleted) 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 // Start the search
sinfo.startSearch() sinfo.startSearch()
} }