aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2013-02-19 22:22:58 -0800
committerAleksander Morgado <aleksander@lanedo.com>2013-02-20 09:17:08 +0100
commitbb73ce0aaf7c8ae4354d34412880a07f82b8a23e (patch)
tree8aab788d1189a1bbc324f3a7fd42878133f2ed76
parentadd455c7e587883abbe1b16e511a3a8b24064b38 (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.c2
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;
}