forked from forks/go-ethereum
p2p/nat: fix #2291, NAT discovery did't abort on failure
This commit is contained in:
parent
8a3ce5450a
commit
64c8e2f2ca
1 changed files with 1 additions and 0 deletions
|
|
@ -139,6 +139,7 @@ func discoverUPnP() Interface {
|
||||||
func discover(out chan<- *upnp, target string, matcher func(*goupnp.RootDevice, goupnp.ServiceClient) *upnp) {
|
func discover(out chan<- *upnp, target string, matcher func(*goupnp.RootDevice, goupnp.ServiceClient) *upnp) {
|
||||||
devs, err := goupnp.DiscoverDevices(target)
|
devs, err := goupnp.DiscoverDevices(target)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
out <- nil
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
found := false
|
found := false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue