mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 08:53:24 +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
|
// Load url
|
||||||
this.cordova.getActivity().runOnUiThread(new Runnable() {
|
this.cordova.getActivity().runOnUiThread(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
Thread thread = new Thread(timeoutCheck);
|
cordova.getThreadPool().execute(timeoutCheck);
|
||||||
thread.start();
|
|
||||||
me.loadUrlNow(url);
|
me.loadUrlNow(url);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user