Fixed rate handling limit handling

Issue #220. If RateLimitHandler returns normally, it should retry.
This commit is contained in:
Kohsuke Kawaguchi
2015-12-02 12:03:39 +01:00
parent 8cb7094803
commit 83ffe75baa
2 changed files with 9 additions and 0 deletions

View File

@@ -501,6 +501,7 @@ class Requester {
if ("0".equals(uc.getHeaderField("X-RateLimit-Remaining"))) {
root.rateLimitHandler.onError(e,uc);
return;
}
InputStream es = wrapStream(uc.getErrorStream());