aboutsummaryrefslogtreecommitdiff
path: root/api.go
diff options
context:
space:
mode:
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() {