huawei: increase the connection timeout to 60s

This commit is contained in:
Aleksander Morgado
2013-04-09 18:41:42 +02:00
parent cb11bd09d6
commit a12d979373

View File

@@ -277,8 +277,11 @@ connect_3gpp_context_step (Connect3gppContext *ctx)
}
case CONNECT_3GPP_CONTEXT_STEP_DHCP:
/* If too many retries (1s of wait between the retries), failed */
if (ctx->check_count > 30) {
/* Wait for dial up timeout, retries for 60 times
* (1s between the retries, so it means 1 minute).
* If too many retries, failed
*/
if (ctx->check_count > 60) {
/* Clear context */
ctx->self->priv->connect_pending = NULL;
g_simple_async_result_set_error (ctx->result,