Skip to content

Commit 1a30b3f

Browse files
author
Hideki Itakura
authored
Merge pull request #1343 from couchbase/feature/issue_1342
Fixed #1342 - Unit Test Failures on Jenkins
2 parents 5758ed9 + 1b4c052 commit 1a30b3f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/com/couchbase/lite/replicator/ReplicationInternal.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,6 @@ public void onCompletion(Response _response, Object result, Throwable err) {
487487

488488
@InterfaceAudience.Private
489489
protected void login() {
490-
authenticating = true;
491-
492490
final LoginAuthorizer loginAuth;
493491
List<Object> login = null;
494492
loginAuth = getAuthenticator() instanceof LoginAuthorizer ? (LoginAuthorizer) getAuthenticator() : null;
@@ -505,6 +503,9 @@ protected void login() {
505503
final String loginPath = (String) login.get(1);
506504
Map<String, Object> loginParameters = login.size() >= 3 ? (Map<String, Object>) login.get(2) : null;
507505

506+
// authenticating flag on.
507+
authenticating = true;
508+
508509
Log.v(Log.TAG_SYNC, "%s: Doing login with %s at %s", this.getClass().getName(), getAuthenticator().getClass(), loginPath);
509510
boolean cancelable = false; // make sure not-canceled during login.
510511
Future future = sendAsyncRequest(method, loginPath, cancelable, loginParameters, new RemoteRequestCompletion() {

0 commit comments

Comments
 (0)