modem: kill active connections on shutdown

This commit is contained in:
Dan Williams 2009-10-05 00:13:01 -07:00
parent 8822f75652
commit 9fb584242c

View file

@ -624,6 +624,14 @@ real_deactivate_quickly (NMModem *self, NMDevice *device)
g_warning ("Invalid IP method");
break;
}
/* Stop the modem and any ongoing connection... */
if (nm_device_interface_get_state (NM_DEVICE_INTERFACE (device))) {
dbus_g_proxy_call_no_reply (nm_modem_get_proxy (self, MM_DBUS_INTERFACE_MODEM),
"Enable",
G_TYPE_BOOLEAN, FALSE,
G_TYPE_INVALID);
}
}
void