Bug 1235246 - Always execute a queued call if it's overdue; r=me

GeckoThread.queueNativeCallLocked tries to execute a queued native call
if it's already overdue, but it incorrectly checked that the queue is
not empty. That check is not necessary, and an overdue native call
should always be executed. One-line patch, r=me.
This commit is contained in:
Jim Chen 2016-01-06 21:33:17 -05:00
parent 426034af5d
commit 3058d39468

View File

@ -194,7 +194,7 @@ public class GeckoThread extends Thread implements GeckoEventListener {
throw new UnsupportedOperationException("Cannot find method", e);
}
if (QUEUED_CALLS.size() == 0 && isStateAtLeast(state)) {
if (isStateAtLeast(state)) {
invokeMethod(method, obj, argValues.toArray());
return;
}