mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1188590: Don't sync dispatch if we're already on main. r=snorp, a=abillings
This commit is contained in:
parent
d4eafcc626
commit
22a0cef241
@ -55,6 +55,10 @@ extern "C" {
|
||||
__attribute__ ((visibility("default")))
|
||||
jclass
|
||||
jsjni_GetGlobalClassRef(const char *className) {
|
||||
if (NS_IsMainThread()) {
|
||||
return __jsjni_GetGlobalClassRef(className);
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIThread> mainThread;
|
||||
mozilla::DebugOnly<nsresult> rv = NS_GetMainThread(getter_AddRefs(mainThread));
|
||||
MOZ_ASSERT(NS_SUCCEEDED(rv));
|
||||
|
Loading…
Reference in New Issue
Block a user