Bug 1279488 - GeckoAppShell.uncaughtException(): Update state check. r?jchen
MozReview-Commit-ID: 3RhHEhYIwQU
--- a/mobile/android/base/java/org/mozilla/gecko/GeckoAppShell.java
+++ b/mobile/android/base/java/org/mozilla/gecko/GeckoAppShell.java
@@ -129,17 +129,18 @@ public class GeckoAppShell
extras.putString("BuildID", AppConstants.MOZ_APP_BUILDID);
extras.putString("Vendor", AppConstants.MOZ_APP_VENDOR);
extras.putString("ReleaseChannel", AppConstants.MOZ_UPDATE_CHANNEL);
return extras;
}
@Override
public void uncaughtException(final Thread thread, final Throwable exc) {
- if (GeckoThread.isStateAtLeast(GeckoThread.State.EXITING)) {
+ if (GeckoThread.isState(GeckoThread.State.EXITING) ||
+ GeckoThread.isState(GeckoThread.State.EXITED)) {
// We've called System.exit. All exceptions after this point are Android
// berating us for being nasty to it.
return;
}
super.uncaughtException(thread, exc);
}