summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorZhenhua Zhang <zhenhua.zhang@intel.com>2009-11-27 17:11:56 +0800
committerDenis Kenzior <denkenz@gmail.com>2009-11-26 08:08:17 -0600
commit7254f8ac867a3ff038229ba48b3b092892432834 (patch)
tree0120554755d63070ad3c2190372979b615b1d6e7 /src
parent78008c6022c19bd02cdccdfc44eff40a0346b43a (diff)
downloadofono-7254f8ac867a3ff038229ba48b3b092892432834.tar.bz2
Fix: Reset call_ids when modem is powered off
Diffstat (limited to 'src')
-rw-r--r--src/modem.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modem.c b/src/modem.c
index e2519612..c335a387 100644
--- a/src/modem.c
+++ b/src/modem.c
@@ -501,6 +501,7 @@ static DBusMessage *modem_set_property(DBusConnection *conn,
modem->driver->pre_sim(modem);
} else {
remove_all_atoms(modem);
+ modem->call_ids = 0;
}
return NULL;
@@ -563,6 +564,7 @@ void ofono_modem_set_powered(struct ofono_modem *modem, ofono_bool_t powered)
modem->driver->pre_sim(modem);
} else {
remove_all_atoms(modem);
+ modem->call_ids = 0;
}
}
@@ -1147,6 +1149,7 @@ static void modem_unregister(struct ofono_modem *modem)
return;
remove_all_atoms(modem);
+ modem->call_ids = 0;
__ofono_watchlist_free(modem->atom_watches);
modem->atom_watches = NULL;