cdma: set correct modem state on connect failure
This commit is contained in:
@@ -466,7 +466,7 @@ dial_done (MMSerialPort *port,
|
|||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
info->error = g_error_copy (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 {
|
} else {
|
||||||
/* Clear reg tries; we're obviously registered by this point */
|
/* Clear reg tries; we're obviously registered by this point */
|
||||||
registration_cleanup (self, 0, 0);
|
registration_cleanup (self, 0, 0);
|
||||||
|
Reference in New Issue
Block a user