diff options
author | Deepak Bhole <[email protected]> | 2011-06-08 14:38:52 -0400 |
---|---|---|
committer | Deepak Bhole <[email protected]> | 2011-06-08 14:38:52 -0400 |
commit | 57a1d6169ce4b03610a1ba56567821f16cf661ce (patch) | |
tree | 6e850d89a19999b19a67009bacb472a8db72a7f4 /plugin/icedteanp/IcedTeaScriptablePluginObject.cc | |
parent | bb07f5268340fcb25ccc80130d2be0e0b9820760 (diff) |
Fix PR721: IcedTeaPlugin.so cannot run g_main_context_iteration on a different thread unless a different GMainContext *context is used
Diffstat (limited to 'plugin/icedteanp/IcedTeaScriptablePluginObject.cc')
-rw-r--r-- | plugin/icedteanp/IcedTeaScriptablePluginObject.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugin/icedteanp/IcedTeaScriptablePluginObject.cc b/plugin/icedteanp/IcedTeaScriptablePluginObject.cc index e482941..518fec6 100644 --- a/plugin/icedteanp/IcedTeaScriptablePluginObject.cc +++ b/plugin/icedteanp/IcedTeaScriptablePluginObject.cc @@ -411,9 +411,7 @@ IcedTeaScriptableJavaPackageObject::get_scriptable_java_object(NPP instance, thread_data.parameters.push_back(np_class); thread_data.parameters.push_back(&scriptable_object); - browser_functions.pluginthreadasynccall(instance, &_createAndRetainJavaObject, &thread_data); - - while (!thread_data.result_ready) usleep(2000); // wait till ready + IcedTeaPluginUtilities::callAndWaitForResult(instance, &_createAndRetainJavaObject, &thread_data); } else { // Else retain object and continue |