aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mm-broadband-bearer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mm-broadband-bearer.c b/src/mm-broadband-bearer.c
index 2e4be249..c34867d3 100644
--- a/src/mm-broadband-bearer.c
+++ b/src/mm-broadband-bearer.c
@@ -501,6 +501,9 @@ extended_error_ready (MMBaseModem *modem,
{
const gchar *result;
+ /* Close the dialling port as we got an error */
+ mm_serial_port_close (MM_SERIAL_PORT (ctx->dial_port));
+
/* If cancelled, complete */
if (dial_3gpp_context_complete_and_free_if_cancelled (ctx))
return;
@@ -520,9 +523,6 @@ extended_error_ready (MMBaseModem *modem,
ctx->saved_error = NULL;
- /* Close the dialling port as we got an error */
- mm_serial_port_close (MM_SERIAL_PORT (ctx->dial_port));
-
/* Done with errors */
dial_3gpp_context_complete_and_free (ctx);
}