aboutsummaryrefslogtreecommitdiffstats
path: root/natupnp.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-02 04:14:20 +0800
committerobscuren <geffobscura@gmail.com>2014-05-02 04:14:20 +0800
commit91aa189ef31adff7f4a084cae770aaa7c01f11e5 (patch)
tree595c5317179ae861146ed695591175b3c56674ce /natupnp.go
parente6a68f0c3ab4987fa5e0e35cac765d40ff305aea (diff)
downloadgo-tangerine-91aa189ef31adff7f4a084cae770aaa7c01f11e5.tar
go-tangerine-91aa189ef31adff7f4a084cae770aaa7c01f11e5.tar.gz
go-tangerine-91aa189ef31adff7f4a084cae770aaa7c01f11e5.tar.bz2
go-tangerine-91aa189ef31adff7f4a084cae770aaa7c01f11e5.tar.lz
go-tangerine-91aa189ef31adff7f4a084cae770aaa7c01f11e5.tar.xz
go-tangerine-91aa189ef31adff7f4a084cae770aaa7c01f11e5.tar.zst
go-tangerine-91aa189ef31adff7f4a084cae770aaa7c01f11e5.zip
Fixed Upnp bug
Diffstat (limited to 'natupnp.go')
-rw-r--r--natupnp.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/natupnp.go b/natupnp.go
index e4072d0dd..c7f9eeb62 100644
--- a/natupnp.go
+++ b/natupnp.go
@@ -246,6 +246,10 @@ func soapRequest(url, function, message string) (r *http.Response, err error) {
//fmt.Println(fullMessage)
r, err = http.DefaultClient.Do(req)
+ if err != nil {
+ return
+ }
+
if r.Body != nil {
defer r.Body.Close()
}