diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-02 04:14:20 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-02 04:14:20 +0800 |
commit | 91aa189ef31adff7f4a084cae770aaa7c01f11e5 (patch) | |
tree | 595c5317179ae861146ed695591175b3c56674ce /natupnp.go | |
parent | e6a68f0c3ab4987fa5e0e35cac765d40ff305aea (diff) | |
download | dexon-91aa189ef31adff7f4a084cae770aaa7c01f11e5.tar.gz dexon-91aa189ef31adff7f4a084cae770aaa7c01f11e5.tar.zst dexon-91aa189ef31adff7f4a084cae770aaa7c01f11e5.zip |
Fixed Upnp bug
Diffstat (limited to 'natupnp.go')
-rw-r--r-- | natupnp.go | 4 |
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() } |