cdma: set correct modem state on connect failure

This commit is contained in:
Dan Williams
2009-12-01 12:57:18 -08:00
parent 881a725ea4
commit 3350a3aeea

View File

@@ -466,7 +466,7 @@ dial_done (MMSerialPort *port,
if (error) {
info->error = g_error_copy (error);
mm_modem_set_state (info->modem, MM_MODEM_STATE_REGISTERED, MM_MODEM_STATE_REASON_NONE);
set_state_enabled (MM_GENERIC_CDMA (info->modem), MM_MODEM_STATE_REASON_NONE);
} else {
/* Clear reg tries; we're obviously registered by this point */
registration_cleanup (self, 0, 0);