Bug 1472832 - Use notifyAll() in GeckoBackgroundThread r=droeh
Without this we deadlock if more than one thread is waiting
in getHandler().
MozReview-Commit-ID: GCB7haz7Lwb
--- a/mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/GeckoBackgroundThread.java
+++ b/mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/GeckoBackgroundThread.java
@@ -27,17 +27,17 @@ final class GeckoBackgroundThread extend
@Override
public void run() {
setName(LOOPER_NAME);
Looper.prepare();
synchronized (GeckoBackgroundThread.class) {
handler = new Handler();
- GeckoBackgroundThread.class.notify();
+ GeckoBackgroundThread.class.notifyAll();
}
if (initialRunnable != null) {
initialRunnable.run();
initialRunnable = null;
}
Looper.loop();