diff options
author | Maran <maran.hidskes@gmail.com> | 2014-05-02 19:35:54 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-05-02 19:35:54 +0800 |
commit | c54788338aad3897f7c0d5631984eaba5207e657 (patch) | |
tree | 129bf49ed79c8d5ad0321387c7c88585fa65e934 /natupnp.go | |
parent | ebdf339a614b9d03a0b0a0292d1ea24f854d6b3e (diff) | |
parent | 70c8656640a861d93ac40181c6c0bdd8faef856b (diff) | |
download | go-tangerine-c54788338aad3897f7c0d5631984eaba5207e657.tar go-tangerine-c54788338aad3897f7c0d5631984eaba5207e657.tar.gz go-tangerine-c54788338aad3897f7c0d5631984eaba5207e657.tar.bz2 go-tangerine-c54788338aad3897f7c0d5631984eaba5207e657.tar.lz go-tangerine-c54788338aad3897f7c0d5631984eaba5207e657.tar.xz go-tangerine-c54788338aad3897f7c0d5631984eaba5207e657.tar.zst go-tangerine-c54788338aad3897f7c0d5631984eaba5207e657.zip |
Merge branch 'develop' into feature/rpc
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() } |