good morning!!!!

Skip to content
Snippets Groups Projects
Commit 91aa189e authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Fixed Upnp bug

parent e6a68f0c
No related branches found
No related tags found
No related merge requests found
...@@ -350,7 +350,7 @@ func (s *Ethereum) WaitForShutdown() { ...@@ -350,7 +350,7 @@ func (s *Ethereum) WaitForShutdown() {
func (s *Ethereum) upnpUpdateThread() { func (s *Ethereum) upnpUpdateThread() {
// Go off immediately to prevent code duplication, thereafter we renew // Go off immediately to prevent code duplication, thereafter we renew
// lease every 15 minutes. // lease every 15 minutes.
timer := time.NewTimer(0 * time.Second) timer := time.NewTimer(5 * time.Minute)
lport, _ := strconv.ParseInt(s.Port, 10, 16) lport, _ := strconv.ParseInt(s.Port, 10, 16)
first := true first := true
out: out:
......
...@@ -246,6 +246,10 @@ func soapRequest(url, function, message string) (r *http.Response, err error) { ...@@ -246,6 +246,10 @@ func soapRequest(url, function, message string) (r *http.Response, err error) {
//fmt.Println(fullMessage) //fmt.Println(fullMessage)
r, err = http.DefaultClient.Do(req) r, err = http.DefaultClient.Do(req)
if err != nil {
return
}
if r.Body != nil { if r.Body != nil {
defer r.Body.Close() defer r.Body.Close()
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment