File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
app/src/main/java/com/duckduckgo/app/httpsupgrade Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class HttpsUpgraderImpl(
4444) : HttpsUpgrader {
4545
4646 private var httpsBloomFilter: BloomFilter ? = null
47- private val reloadLock = ReentrantLock ()
47+ private val dataReloadLock = ReentrantLock ()
4848
4949 init {
5050 thread {
@@ -82,16 +82,16 @@ class HttpsUpgraderImpl(
8282
8383 private fun waitForAnyReloadsToComplete () {
8484 // wait for lock (by locking and unlocking) before continuing
85- if (reloadLock .isLocked) {
86- reloadLock .lock()
87- reloadLock .unlock()
85+ if (dataReloadLock .isLocked) {
86+ dataReloadLock .lock()
87+ dataReloadLock .unlock()
8888 }
8989 }
9090
9191 override fun reloadData () {
92- reloadLock .lock()
92+ dataReloadLock .lock()
9393 httpsBloomFilter = bloomFactory.create()
94- reloadLock .unlock()
94+ dataReloadLock .unlock()
9595 }
9696
9797 companion object {
You can’t perform that action at this time.
0 commit comments