Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
avazirna committed Sep 18, 2023
1 parent 94efc1c commit 279f859
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/src/org/commcare/network/CTInterceptorConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ class CTInterceptorConfig {
Logger.log(
LogTypes.TYPE_NETWORK,
"Certificate verification failed: $host -> $result")
previousRequestFailed = true
} else if (result is VerificationResult.Success && previousRequestFailed) {
previousRequestFailed = false
}
previousRequestFailed = result is VerificationResult.Failure
}
}
}
Expand Down

0 comments on commit 279f859

Please sign in to comment.