Fix long-polling mixup

Fixes #110.
This commit is contained in:
Lucien Greathouse
2019-01-28 14:00:22 -08:00
parent 4516df5aac
commit deb4118c5d
2 changed files with 2 additions and 1 deletions

View File

@@ -143,7 +143,7 @@ function ApiContext:retrieveMessages()
return Http.get(url)
:catch(function(err)
if err.type == HttpError.Error.Timeout then
return self:retrieveMessages()
return Http.get(url)
end
return Promise.reject(err)