mirror of https://github.com/docker/docs.git
Fix counter
This commit is contained in:
parent
23afba69d8
commit
ce2054f1c7
|
@ -47,7 +47,7 @@ var Docker = {
|
|||
} catch (err) {
|
||||
tryCount += 1;
|
||||
yield Promise.delay(delay);
|
||||
if (tryCount === tries) {
|
||||
if (tryCount > tries) {
|
||||
throw new Error(err);
|
||||
}
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue