Skip to content
This repository has been archived by the owner on Oct 18, 2018. It is now read-only.

Commit

Permalink
Set timeout correctly for creating an account.
Browse files Browse the repository at this point in the history
  • Loading branch information
liuche committed Jan 9, 2012
1 parent 2c46a46 commit 9485f50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/mozilla/gecko/sync/jpake/JPakeClient.java
Expand Up @@ -676,7 +676,7 @@ public void onRequestFailure(HttpResponse res) {
case 304:
Log.d(LOG_TAG, "Channel hasn't been updated yet. Will try again later");
if (pollTries >= jpakeMaxTries) {
Log.e(LOG_TAG, "Tried for " + pollTries + " times, aborting");
Log.e(LOG_TAG, "Tried for " + pollTries + " times, maxTries " + jpakeMaxTries + ", aborting");
abort(Constants.JPAKE_ERROR_TIMEOUT);
return;
}
Expand Down Expand Up @@ -807,7 +807,6 @@ public void onRequestSuccess(HttpResponse res) {
} else if (this.state == State.RCVR_STEP_TWO) {
computeFinal();
} else if (this.state == State.VERIFY_KEY) {
jpakeMaxTries = MAX_TRIES_LAST_MSG;
decryptData(myKeyBundle);
} else if (this.state == State.VERIFY_PAIRING) {
try {
Expand Down Expand Up @@ -835,6 +834,7 @@ public void onRequestSuccess(HttpResponse res) {

state = stateContext;
if (state == State.VERIFY_KEY) {
jpakeMaxTries = MAX_TRIES_LAST_MSG;
ssActivity.onPaired();
}
if (state == State.SNDR_STEP_ONE) {
Expand Down

0 comments on commit 9485f50

Please sign in to comment.