mirror of https://bitbucket.org/ausocean/av.git
revid: cleaned up send logic in httpSender send func
This commit is contained in:
parent
8878063dc8
commit
703f0a0523
|
@ -146,11 +146,12 @@ func (s *httpSender) send() error {
|
||||||
}
|
}
|
||||||
var err error
|
var err error
|
||||||
var reply string
|
var reply string
|
||||||
if send {
|
if !send {
|
||||||
reply, _, err = s.client.Send(netsender.RequestRecv, pins)
|
return nil
|
||||||
if err != nil {
|
}
|
||||||
return err
|
reply, _, err = s.client.Send(netsender.RequestRecv, pins)
|
||||||
}
|
if err != nil {
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
return s.extractMeta(reply)
|
return s.extractMeta(reply)
|
||||||
|
|
Loading…
Reference in New Issue