---
src/modem.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/modem.c b/src/modem.c
index 52e647b..ae427b3 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)
--
1.7.3.2
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono