iface-modem: don't force port closing here, it breaks the open/close count

This commit is contained in:
Aleksander Morgado
2012-02-08 16:08:29 +01:00
parent 214a146a28
commit a1dc38360c

View File

@@ -2058,11 +2058,11 @@ enabling_context_complete_and_free (EnablingContext *ctx)
MM_MODEM_STATE_CHANGE_REASON_UNKNOWN); MM_MODEM_STATE_CHANGE_REASON_UNKNOWN);
/* Close the ports if enabling failed */ /* Close the ports if enabling failed */
if (ctx->primary_open) if (ctx->primary_open)
mm_serial_port_close_force (MM_SERIAL_PORT (ctx->primary)); mm_serial_port_close (MM_SERIAL_PORT (ctx->primary));
if (ctx->secondary_open) if (ctx->secondary_open)
mm_serial_port_close_force (MM_SERIAL_PORT (ctx->secondary)); mm_serial_port_close (MM_SERIAL_PORT (ctx->secondary));
if (ctx->qcdm_open) if (ctx->qcdm_open)
mm_serial_port_close_force (MM_SERIAL_PORT (ctx->qcdm)); mm_serial_port_close (MM_SERIAL_PORT (ctx->qcdm));
} }
g_object_unref (ctx->self); g_object_unref (ctx->self);