aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mm-base-modem.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mm-base-modem.c b/src/mm-base-modem.c
index a7fdfa0a..16f3e07b 100644
--- a/src/mm-base-modem.c
+++ b/src/mm-base-modem.c
@@ -2303,6 +2303,11 @@ cleanup_modem_port (MMBaseModem *self,
if (ctx)
teardown_context_ref (ctx);
+ /* No need to close serial ports here as they do not require a specific
+ * shutdown procedure with message exchanges and callbacks. They will be
+ * closed when the modem is invalidated or disposed.
+ */
+
#if defined WITH_MBIM
/* We need to close the MBIM port cleanly when disposing the modem object */
if (MM_IS_PORT_MBIM (port)) {