diff options
author | Ben Chan <benchan@chromium.org> | 2013-02-19 22:22:58 -0800 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-02-20 09:17:08 +0100 |
commit | bb73ce0aaf7c8ae4354d34412880a07f82b8a23e (patch) | |
tree | 8aab788d1189a1bbc324f3a7fd42878133f2ed76 | |
parent | add455c7e587883abbe1b16e511a3a8b24064b38 (diff) |
iface-modem: fix modem state consolidation upon bearer disconnection
Patch "iface-modem: fix invalid modem state consolidation" (commit
69aff6183a9e6532b4074c89831d6dcfa81ddcce) 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.
-rw-r--r-- | src/mm-iface-modem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-iface-modem.c b/src/mm-iface-modem.c index 63ef6fca..f02b0bdc 100644 --- a/src/mm-iface-modem.c +++ b/src/mm-iface-modem.c @@ -270,7 +270,7 @@ bearer_status_changed (MMBearer *bearer, new_state = MM_MODEM_STATE_DISCONNECTING; break; 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; } |