From cef9a282c1a3636d4b91d3168fb284917984fec5 Mon Sep 17 00:00:00 2001 From: John Beisley Date: Mon, 6 Jan 2014 20:14:53 +0000 Subject: [PATCH] Don't discard all results if an unexpected reply comes back. --- ssdp/ssdp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssdp/ssdp.go b/ssdp/ssdp.go index 7b51c1a..797b987 100644 --- a/ssdp/ssdp.go +++ b/ssdp/ssdp.go @@ -56,7 +56,7 @@ func SSDPRawSearch(httpu *httpu.HTTPUClient, searchTarget string, maxWaitSeconds } if st := response.Header.Get("ST"); st != searchTarget { log.Printf("ssdp: got unexpected search target result %q", st) - return nil, nil + continue } location, err := response.Location() if err != nil {