4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-07-04 15:57:47 +00:00

Some tweaks

This commit is contained in:
Neil Alexander
2019-04-20 20:22:58 +01:00
parent d01662c1fb
commit 62621f2960
4 changed files with 22 additions and 19 deletions

View File

@ -27,6 +27,9 @@ func (c *Conn) startSearch() {
searchCompleted := func(sinfo *sessionInfo, err error) {
if err != nil {
c.core.log.Debugln("DHT search failed:", err)
c.mutex.Lock()
c.expired = true
c.mutex.Unlock()
return
}
if sinfo != nil {