iface-modem: fix modem state consolidation upon bearer disconnection

Patch "iface-modem: fix invalid modem state consolidation" (commit
69aff6183a) incorrectly consolidates the
modem state upon the disconnection of a bearer. The modem state remains
'connected' after the last bearer is disconnected. This patch fixes
that.
This commit is contained in:
Ben Chan
2013-02-19 22:22:58 -08:00
committed by Aleksander Morgado
parent add455c7e5
commit bb73ce0aaf

View File

@@ -270,7 +270,7 @@ bearer_status_changed (MMBearer *bearer,
new_state = MM_MODEM_STATE_DISCONNECTING; new_state = MM_MODEM_STATE_DISCONNECTING;
break; break;
case MM_BEARER_STATUS_DISCONNECTED: case MM_BEARER_STATUS_DISCONNECTED:
new_state = get_current_consolidated_state (self, state); new_state = get_current_consolidated_state (self, MM_MODEM_STATE_UNKNOWN);
break; break;
} }