mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 07:12:27 +00:00
Don't complain about expected timeout
This commit is contained in:
parent
f5ea00b297
commit
064bfd366f
@ -243,6 +243,10 @@ func (d *Discoverer) externalLookup(node string) (string, bool) {
|
||||
|
||||
n, err := conn.Read(buf)
|
||||
if err != nil {
|
||||
if err, ok := err.(net.Error); ok && err.Timeout() {
|
||||
// Expected if the server doesn't know about requested node ID
|
||||
return "", false
|
||||
}
|
||||
log.Printf("discover/external/read: %v; no external lookup", err)
|
||||
return "", false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user