Don't discard all results if an unexpected reply comes back.

This commit is contained in:
John Beisley 2014-01-06 20:14:53 +00:00
parent a8a8987980
commit cef9a282c1

View File

@ -56,7 +56,7 @@ func SSDPRawSearch(httpu *httpu.HTTPUClient, searchTarget string, maxWaitSeconds
} }
if st := response.Header.Get("ST"); st != searchTarget { if st := response.Header.Get("ST"); st != searchTarget {
log.Printf("ssdp: got unexpected search target result %q", st) log.Printf("ssdp: got unexpected search target result %q", st)
return nil, nil continue
} }
location, err := response.Location() location, err := response.Location()
if err != nil { if err != nil {