Don't discard all results if an unexpected reply comes back.
This commit is contained in:
parent
a8a8987980
commit
cef9a282c1
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user