Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android-webview/src/org/adblockplus/libadblockplus/android/webview/AdblockWebView.java

Issue 29712652: Issue 6436 - Thread access crash (Closed)
Patch Set: Created March 1, 2018, 3:31 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libadblockplus-android-webview/src/org/adblockplus/libadblockplus/android/webview/AdblockWebView.java
diff --git a/libadblockplus-android-webview/src/org/adblockplus/libadblockplus/android/webview/AdblockWebView.java b/libadblockplus-android-webview/src/org/adblockplus/libadblockplus/android/webview/AdblockWebView.java
index afddda79172c8f3778c2155412c9b157552fb10d..44e6184c79ece049e6848ac1f57e96afeca6e92a 100644
--- a/libadblockplus-android-webview/src/org/adblockplus/libadblockplus/android/webview/AdblockWebView.java
+++ b/libadblockplus-android-webview/src/org/adblockplus/libadblockplus/android/webview/AdblockWebView.java
@@ -1154,9 +1154,12 @@ public class AdblockWebView extends WebView
if (url != null)
{
elemHideLatch = new CountDownLatch(1);
- elemHideThread = new ElemHideThread(elemHideLatch);
- elemHideThread.setFinishedRunnable(elemHideThreadFinishedRunnable);
- elemHideThread.start();
+ synchronized (elemHideThreadLockObject)
+ {
+ elemHideThread = new ElemHideThread(elemHideLatch);
+ elemHideThread.setFinishedRunnable(elemHideThreadFinishedRunnable);
+ elemHideThread.start();
+ }
}
else
{
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld