mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
Use thread pool for load timeout.
This commit is contained in:
parent
5b2a73e3eb
commit
c42cd4233d
@ -494,8 +494,7 @@ public class CordovaWebView extends WebView {
|
||||
// Load url
|
||||
this.cordova.getActivity().runOnUiThread(new Runnable() {
|
||||
public void run() {
|
||||
Thread thread = new Thread(timeoutCheck);
|
||||
thread.start();
|
||||
cordova.getThreadPool().execute(timeoutCheck);
|
||||
me.loadUrlNow(url);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user