mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-27 04:42:51 +08:00
Removing runnable code for timeout because it's not thread-safe
This commit is contained in:
parent
fea79bc971
commit
8ac274cdca
@ -407,9 +407,11 @@ public class DroidGap extends Activity implements CordovaInterface {
|
|||||||
|
|
||||||
// If timeout, then stop loading and handle error
|
// If timeout, then stop loading and handle error
|
||||||
if (me.loadUrlTimeout == currentLoadUrlTimeout) {
|
if (me.loadUrlTimeout == currentLoadUrlTimeout) {
|
||||||
|
/*
|
||||||
me.appView.stopLoading();
|
me.appView.stopLoading();
|
||||||
LOG.e(TAG, "DroidGap: TIMEOUT ERROR! - calling webViewClient");
|
LOG.e(TAG, "DroidGap: TIMEOUT ERROR! - calling webViewClient");
|
||||||
me.webViewClient.onReceivedError(me.appView, -6, "The connection to the server was unsuccessful.", url);
|
me.webViewClient.onReceivedError(me.appView, -6, "The connection to the server was unsuccessful.", url);
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user