summaryrefslogtreecommitdiffstats
path: root/src/modem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modem.c')
-rw-r--r--src/modem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modem.c b/src/modem.c
index 52e647ba..ae427b33 100644
--- a/src/modem.c
+++ b/src/modem.c
@@ -804,7 +804,8 @@ void ofono_modem_set_powered(struct ofono_modem *modem, ofono_bool_t powered)
modem->timeout = 0;
}
- if (modem->pending != NULL) {
+ if (modem->powered_pending != modem->powered &&
+ modem->pending != NULL) {
DBusMessage *reply;
if (powered == modem->powered_pending)