diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-08-30 11:21:46 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-08-30 11:26:28 +0200 |
commit | 58553df9bb5b1228861920196abc637b23e93443 (patch) | |
tree | e24d39248c239fb3d12fa23d1ca448a7fd016529 | |
parent | 2edbf674e0781680cd0c5a2681565d1b2489d9d1 (diff) |
bearer-qmi: 'no-effect' errors while disconnecting aren't fatal
-rw-r--r-- | src/mm-bearer-qmi.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mm-bearer-qmi.c b/src/mm-bearer-qmi.c index 4af0d5ad..ef28e955 100644 --- a/src/mm-bearer-qmi.c +++ b/src/mm-bearer-qmi.c @@ -796,8 +796,16 @@ stop_network_ready (QmiClientWds *client, QmiMessageWdsStopNetworkOutput *output; output = qmi_client_wds_stop_network_finish (client, res, &error); - if (output) - qmi_message_wds_stop_network_output_get_result (output, &error); + if (output && + !qmi_message_wds_stop_network_output_get_result (output, &error)) { + /* No effect error, we're already disconnected */ + if (g_error_matches (error, + QMI_PROTOCOL_ERROR, + QMI_PROTOCOL_ERROR_NO_EFFECT)) { + g_error_free (error); + error = NULL; + } + } if (error) { if (ctx->running_ipv4) |