mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1055166 - Catch IllegalStateException when recycling Message r=jchen
--HG-- extra : histedit_source : e1a4cec7894fb89147960174cac24444d98cba0a
This commit is contained in:
parent
dd4eb066b2
commit
78e0f282b3
@ -2483,7 +2483,16 @@ public class GeckoAppShell
|
||||
Looper.myLooper().quit();
|
||||
else
|
||||
msg.getTarget().dispatchMessage(msg);
|
||||
msg.recycle();
|
||||
|
||||
try {
|
||||
// Bug 1055166 - this sometimes throws IllegalStateException on Android L.
|
||||
// There appears to be no way to figure out if a message is in use or not, let
|
||||
// alone receive a notification when it is no longer being used. Just catch
|
||||
// the exception for now, and if a better solution comes along we can use it.
|
||||
msg.recycle();
|
||||
} catch (IllegalStateException e) {
|
||||
// There is nothing we can do here so just eat it
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user