summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/modem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modem.c b/src/modem.c
index 38467d2b..2242100f 100644
--- a/src/modem.c
+++ b/src/modem.c
@@ -591,7 +591,7 @@ void ofono_modem_set_powered(struct ofono_modem *modem, ofono_bool_t powered)
}
}
- if (powering_down) {
+ if (powering_down && powered == FALSE) {
modems_remaining -= 1;
if (modems_remaining == 0)