aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFangxiaozhi (Franko) <fangxiaozhi@huawei.com>2013-08-12 09:04:43 +0200
committerAleksander Morgado <aleksander@lanedo.com>2013-08-12 09:04:43 +0200
commite778283f5512acd294929ae504113040faff3e14 (patch)
treea0de545f7592e378342fa662d61807238ec13b7c
parenta82acb34ec7ca3d276263a6f286b586ac23d3856 (diff)
huawei: enlarge the checking times for ndisstatqry in disconnecting
In sometimes, the disconnection of NDISDUP will spend more time than 10s. So it is better to enlarge the checking times, such as up to 60 times.
-rw-r--r--plugins/huawei/mm-broadband-bearer-huawei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/huawei/mm-broadband-bearer-huawei.c b/plugins/huawei/mm-broadband-bearer-huawei.c
index 13499e04..2e1b0b06 100644
--- a/plugins/huawei/mm-broadband-bearer-huawei.c
+++ b/plugins/huawei/mm-broadband-bearer-huawei.c
@@ -558,7 +558,7 @@ disconnect_3gpp_context_step (Disconnect3gppContext *ctx)
case DISCONNECT_3GPP_CONTEXT_STEP_NDISSTATQRY:
/* If too many retries (1s of wait between the retries), failed */
- if (ctx->check_count > 10) {
+ if (ctx->check_count > 60) {
/* Clear context */
ctx->self->priv->disconnect_pending = NULL;
g_simple_async_result_set_error (ctx->result,