aboutsummaryrefslogtreecommitdiff
path: root/api.go
diff options
context:
space:
mode:
authorAlexander Kiryukhin <a.kiryukhin@mail.ru>2021-02-14 13:23:10 +0300
committerGitHub <noreply@github.com>2021-02-14 13:23:10 +0300
commitc31a53b6a1e5fa0c6966451c5f45e42d1eb822ee (patch)
tree5d1683dbe87fedbc6c1d7376df7147a8ad0936c2 /api.go
parentee63b08bd7861702123f9c5e83d60f49b1805e85 (diff)
parente768ef944c88be1b18c995544c76fa931d9c5916 (diff)
Merge pull request #4 from neonxp:issue_3HEADv0.3.4master
Fix issue #3
Diffstat (limited to 'api.go')
-rw-r--r--api.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/api.go b/api.go
index 77fe2dc..5e1421b 100644
--- a/api.go
+++ b/api.go
@@ -161,6 +161,9 @@ func (a *Api) getUpdates(limit int, timeout int, marker int64, types []string) (
}
body, err := a.client.request(http.MethodGet, "updates", values, nil)
if err != nil {
+ if err == errLongPollTimeout {
+ return result, nil
+ }
return result, err
}
defer func() {