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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user