Fix counter

This commit is contained in:
Jeffrey Morgan 2015-03-05 18:06:39 -05:00
parent 23afba69d8
commit ce2054f1c7
1 changed files with 1 additions and 1 deletions

View File

@ -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;