mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Some tweaks
This commit is contained in:
parent
d01662c1fb
commit
62621f2960
4 changed files with 22 additions and 19 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue