some minor refactoring to dht callbacks and searches, work in progress

This commit is contained in:
Arceliar 2019-06-25 19:31:29 -05:00
parent 2fd3ac6837
commit 29a0f8b572
4 changed files with 61 additions and 58 deletions

View file

@ -128,7 +128,7 @@ func (c *Conn) startSearch() {
c.core.log.Debugf("%s DHT search started: %p", c.String(), sinfo)
}
// Continue the search
c.core.searches.continueSearch(sinfo)
sinfo.continueSearch()
}
// Take a copy of the session object, in case it changes later
c.mutex.RLock()