diff options
author | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2021-02-14 13:21:37 +0300 |
---|---|---|
committer | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2021-02-14 13:21:37 +0300 |
commit | e768ef944c88be1b18c995544c76fa931d9c5916 (patch) | |
tree | 5d1683dbe87fedbc6c1d7376df7147a8ad0936c2 /api.go | |
parent | ee63b08bd7861702123f9c5e83d60f49b1805e85 (diff) |
Fix issue #3
Diffstat (limited to 'api.go')
-rw-r--r-- | api.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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() { |