Use thread pool for load timeout.

This commit is contained in:
Andrew Grieve 2014-01-28 10:30:11 -05:00
parent 5b2a73e3eb
commit c42cd4233d

View File

@ -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);
}
});