mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-23 18:15:24 +00:00
fix deadlock in conn (unsafe use of phony.Block)
This commit is contained in:
parent
d0f2d889af
commit
bc48e4bb80
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user